Length validator for phone number.