update user login logout