add validate for domain search.