made login/container creation more robust in case containers do (not yet) exist