RestorePassword represents all the process for the recover password code.
This function should be called if the user wants to change/updates the password.