search engine part 2 input + error handling