--- loncom/interface/lonuserutils.pm	2014/03/31 01:09:11	1.165
+++ loncom/interface/lonuserutils.pm	2014/06/13 11:14:35	1.168
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.165 2014/03/31 01:09:11 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.168 2014/06/13 11:14:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5396,6 +5396,9 @@ function setSections(formname,crstype) {
     var groups = new Array($groupslist);
     for (var i=0;i<formname.elements.length;i++) {
         var str = formname.elements[i].name;
+        if (typeof(str) === "undefined") {
+            continue;
+        }
         var checkcurr = str.match(re1);
         if (checkcurr != null) {
             var num = i;
@@ -6095,7 +6098,7 @@ sub selfenroll_validation_types {
             button   => 'Text for validation button',
             markup   => 'Validation description (HTML)',
     );
-    my @fields = ('username','domain','uniquecode','course','token','coursetype');
+    my @fields = ('username','domain','uniquecode','course','coursetype','description');
     return (\@items,\%names,\@fields);
 }