USER REGISTRATION WITH AN ACTION

Community, I want to create a user registry every time they enter the app, I have tried to automate the process with an action called REGISTRAR_ACCESO that is executed from the Behavior Only if this condition is true, where the expression is: USERSETTINGS("Valid_User ") and in USERSETTINGS the Valid_User column has the following expression: Initial Value= AND(ISNOTBLANK(USERSETTINGS(“USER”)), LOOKUP(USERSETTINGS(“USER”), “USERS”, “NAME”, “NAME”) = USERSETTINGS(“USER”)) of type YES/NOT.
When the user logs in, the result is Y,

but in the action, the result is N, the expression assistant showing all the users in the USUARIOS table.

Which prevents the action from being executed.

What mistake am I making? Please your valuable help. I accept ideas.