Fix bug Teacher register