added an error message for invalid search term