added abillety to toggle authentication on and off