Improved the logging and class loading for the credentials_provider_class feature.