Logging in now works correctly.