Validate phone numbers when formatting.