[code] add logout