Toothpaste usually contains an abrasive. May be harmless as a defogging agent but I would avoid it because there are safer, liquid based defogging concoctions available. Dive shops usually have one or two products on the shelf.