Got the class sub documnt validator working