validations for pdf controls