date validation on edit form is fixed