changed template usage for HTTP Basic auth