Fixed a bunch of login stuff.