Nested classes validation