fix forget passwd issue.

We fixed the reset passwd flow. Please review the fix. Thanks