validate that end time is greater than start time