added action validation in tutorial