consider duplicate emails settings while updating a user, fixes bug #29