Validate using a block