fixed validator for search