Fixed Validator Component when inner object is undefined