modify login/logout