Makes sure that start date is before end date