modify template to use basic auth