Handling of multiple attempts using registration

Also now uses email to identify users.