allow using basic auth to connecting to registry

Signed-off-by: Vladimir Bulyga <xx@ccxx.cc>