Added some validation on schedules