Added `validate` to tls module.