check for if start date is after end date