Check for duplicate user before adding

Fixes #17.