fixed nested object validation issue