Fixed a bunch; now does automatic account creation, login authentication