Fix some errors on sitekey check and throw error
Merge pull request #2 from aortmann/master

Fix some errors on sitekey check and throw error