fixes authentication and auth stuff
Merge pull request #5 from featalion/auth_fixes

fixes authentication and auth stuff