update server, add logout