rewrite password to file when reset password.