logging out working correctly, attempting to fix client side authentication