Make sure user is authenticated when calling api