added register and reset password