Validation
The validation result object contains many properties:
result.failed() // Boolean
result.error(prop) // Boolean
result.message(prop) // String
Error
Check if a field has an error
result.error('name')
Check if a field has an error for a specific rule
result.error('name', 'required')
Error message
Get first error message for a field
result.message('name')
Get all the error messages for a field (joined with comma)
result.message('name', true)