add logging when searching, and add ability to save valid search input.