Issue #10: unique email address

If a new user tries to register with an email address which is already
in the database, then an error is returned and no new user is created.