Email data not being populated correctly