change signature of createSchedule, add checks for dates fields