add forgotpassword and resetPassword function