Fixed teachers authentication security bug