minor fix login/logout