add missing validation when clearing the cupcake box