Fixing log out and log in.