Bugfix in userModel.  All userModel functions should be refactored to error handle soon