I'm trying to clear old templates but the newly added validate functionality does not work. 