Moved validQueries functionalityinto searchResults model