Validate search-root input