Validation and error handler in PDFex service