Fixing bug 1215, duplicate user throws incorrect error
Merge pull request #343 from einhverfr/1.4

Fixing bug 1215, duplicate user throws incorrect error