logout modified