update login logout