Added TLS validation