finished forgetPassword function