Quick example of inline validator (original doc did not mention inline validator)