Bugfix in userModel.  All userModel functions should be refactored to er...

...ror handle soon