fix flag arrangement for logged in users