I agree with Shiraz that you probably want this list in a shared location, such as a SharePoint List, a database, or maybe even an outside XML doc.
To check to see if the username exists in the 2DS you can just do something like this:
1. Place two expression boxes under the button, one says Success, the other Failure.
2. Put conditional formatting on them so that if they username is found, Succes displays and Failure doesn't. Vice versa if it's not found.
To do the checking to see if it exists you can do something like this:
count( XPath/To/Node/on/Secondary[ MainDOM/theUserId = ./UserId ) = 0
I hope this helps!
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge