fix register teacher controller