Add conditional for http basic auth check