- Added basic logging to make it a bit easier to decipher problems.
- Fixed up the login window profile creation to be more reliable through
  the use of the server-side Accounts.validateLoginAttempt function.