This is first working version of an added login query to the account
creation process. It fixes the first part of #6, but there still needs
to be more testing for the second part of that issue, which concerns
creating accounts with domains not listed in domain.csv.