Fixed UI and functional behavior when a user is already logged in.