password-reset function complete