add APIs to allow authentication with email