Handle auth errors properly fixes #159
Merge pull request #160 from glittergallery/fix-auth-error

Handle auth errors properly fixes #159