Implement matching validation.