Adds better error messages if api_key or api_secret is not present.