Change the behaviour on select date

Change the behaviour on select date - if the startDate is selected and
the user selects a valid date, the endDate is updated