fix end date validation.