Fix for broken auth
Merge pull request #2 from lucacri/master

Fix for an error when attempting a login