added error checking for bad brand input in autocomplete