check if providerId is defined in the config