Changed to use headers
Merge pull request #62 from cs198/fix-auth

Changed to use headers