added check for missing key and password on container creation