I would agree with Richard. If your teachers can change user names then I would check your role assignments as by default they aren't allowed to change user names and users themselves aren't allowed to change user names once the account has been created.
Roles and permissions
Prevent users from changing usernames
This discussion has been locked so you can no longer reply to it.