server side validation when adding schedule