validation in schedule creation