update login/logout