Validation code sample