Select the button, group it by itself (“Make Group” option on the 3 dot vertical settings menu), and set the visibility to sometimes if the input is not equal to empty.
This adds an “AND” style of functionality.
Input is not equal to empty (group visibility setting) AND the logged-in user access code is equal to input (button within the group visibility setting).