correct creation of userObj. fixes #1497
Merge pull request #1498 from craigh/forcepassfix

correct creation of userObj. fixes #1497