Add validation error object
Add Validation standalone function