correct application stack trace for validation errors