Check minDate and maxDate in validation.