changed the end date update so that it only gets updated if it is before
the start date.