login/logout tweak