disallow begin time before end time