Password change

Hi, I want the user to be able to change the password once they are logged in and logged in. I have tried this method and it makes the change in the database:

But, when I try to change for the second consecutive time (without leaving the session), I get the following error and the change is not made in the database.

You must keep the token from the first change.

I need a solution so that I do not have to log out and that the password can be updated as many times as necessary without having that error.

Or if there is an alternative solution I would like to know.

I have found the solution to my problem, storing the token in the following way:
Using the block: Set Current User token: Is Valid User Session

I share the solution in case it can be useful to someone.

Regards.