Logging in and out now works. Pages can now detect login.