logout can now work