Added Validations for parent and is_primary