Migrate email node to credentials system