Use key "username" (not "user") for loginWithUsername
Merge pull request #1 from gadicc/master

Use key "username" (not "user") for loginWithUsername