Add validation for search criteria