added conditionals for email and phone number