fixed a bug in formSingleton() causing it to use name instead of label in the label tag