added the reset password function