fix required validator for date and time fields