Updates json and fixes username check

Second pull request submission -- sorry I screwed up the first one.  Thanks for a useful library!