Initial check of API key entered in config from getData function. Adjustments to error dialog.