added validation to search results and publishing