implemented validation for parser