Why dates disappear after the form is submitted?