Added error messages to the schoolyear_dialog