Updated ParseAndValidate to use the error tag