Add a class to the label or legend if it's a mandatory field