fixed authentication
Merge pull request #6 from surr-name/authFix

authentication does not work