only update the location input if the location is found. better error handling for the api keys