Fix action validation in v3 and v4 flow module.