Cleaned up login view code.

If you are logged in, it auto logins.