basic auth support for registry