:add logout control code