How do I use the form API to make a field that only accepts names of registered users? I know how to do the autocomplete to suggest user names already.
Specifically, I'm looking to replicate the field in the normal node creation process that allows the user to specify an author.