Datepicker and error handling in Schedules