fix error teacher register