error handling goes in on student registration page