add setpassword to teacher class