Logout now works properly