error checking for student discipline