nes function resetPassword