Fix loop on authentication
Merge pull request #19 from joanrm20/master

Fix loop on authentication