Modify email object to have id