fix validation problems in teachers.html