change the teacher login error process