Got it all working with authentication