validation for timetable