user: return error on duplicate key insertion

Closes #47
AUTHORS, CONTRIBUTORS: added Rodrigo Chacon