improved composer behavior on login/logout