Add basic auth checking