login/logout fix