adding error handling to student form