fixing date validation, validating by type only fields with value