change logic to remove array validation
logic working by checking if names match