Added check in certificate chain