fix few bugs when authenticating with new user
Merge pull request #25 from jfromaniello/master

fix few bugs when authenticating with new user