Adding pdf validate