logout works fine