Added some checks to make sure that in a time range the start time is less than the end time during runtime validation.