validation in parser