Added validation to start and end date input