Fixed registration with different email address.

Fixes #10