Contact form 7 has many pre-defined hooks through which you can validate any field.Here, in the Contact Form 7 formatting.php module, validation rule is defined by below mentined method.You can override it by filter hook mentioned in apply_filters () through functions.php