USERGRID-77 can't login for newly created user due to NPE
Merge pull request #48 from stliu/USERGRID-77

USERGRID-77 can't login for newly created user due to NPE