Added validation for domain fields.