when i type a date and then delete the field it gets "date" error and should not, since the field is empty