fixes #3

add logic for handling a duplicate email address