Add validation in the block