Accounts.createUser() does not insert email

I am scratching my head why Accounts.createUser() does not insert email. I can post the email successfully to the server but the email is never inserted.

Anyone know why https://github.com/aldeed/meteor-autoform/issues/1453

I was able to solve the issue and i shared it in this gist https://gist.github.com/openqubit/12ebcce5f91228e2a295b8ff0327512b