Invisible conditional is not work

Hello! Im facing a issue when try to make this button invisble. The element is organizn in a Reusuble header, in this header I have all buttons: Register, Logout etc. So, this reusuble header is alocated in Index page.
You can see the Inspect, aparently is not accept my conditional

What if you do a search for the user? Kinda of a weird workaround but it was helpful for us to fix a similar bug.

Search for user:first item with unique id current user’s unique ID.