Add certificate validation