Fix logout function to properly remove COOKIES