finalizing the password changing mechanism