Fixed the validation for the date time pickers