fixed outofindex and create new user bug
Merge pull request #24 from wmantly/user_class

fixed outofindex and create new user bug