No need to change `$scope.loadingData`, because when it is successful, the state changes. I'm not sure exactly when the `authorizeProviders` method (frontend or backend) would fail, but I should certainly write tests for it.