Check for start time greater than endtime