initial work on login/logout