Validating form with javascript.
Saving error in schedule.