Added option to validate certs or not.