add cert validation to separate class