add logout to node