Add replaceInArray validation error