Validate statements inside batch