Added error message if APIkey is missing