added error message if APi key does not exist