Get login/logout/requesting login code working.