tighten up the authorization method
Merge pull request #3 from apiguy/patch-1

tighten up the authorization method