Handle invalid emails in registration. Closes #22.