add hooks to validate app payload
add custom validator example
add validation hooks for RPC payloads