Add validation of a search