Add login via email.

Closes #1