make logout work