Added validation for email and phone number fields.