improving validations for Date fields.