diff --git a/logintoboggan.module b/logintoboggan.module
index 6ccb24f..5e02297 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -330,7 +330,7 @@ function logintoboggan_form_user_admin_permissions_alter(&$form, &$form_state) {
  *
  * @ingroup logintoboggan_core
  */
-function logintoboggan_form_alter(&$form, &$form_state, $form_id) {
+function logintoboggan_form_alter(&$form, &$form_state, $form_id) {  
   switch ($form_id) {
     case 'user_login':
     case 'user_login_block':
@@ -395,6 +395,22 @@ function logintoboggan_form_alter(&$form, &$form_state, $form_id) {
       $form['registration_cancellation']['user_email_verification']['#disabled'] = true;
       $form['registration_cancellation']['user_email_verification']['#description'] = t('This setting has been locked by the LoginToboggan module. You can change this setting by modifying the <strong>Set password</strong> checkbox at <a href="!link">LoginToboggan settings page</a>.', array('!link' => url('admin/config/system/logintoboggan')));
       break;
+    case 'field_ui_field_edit_form':
+      // If the pre-auth role isn't the auth user, then add it as a setting.
+      // If we don't add this here, it will cause a Javascript error when the logintoboggan.permissions.js is added
+      //  since the Drupal.settings.loginToboggan object will not exist.
+      $id = logintoboggan_validating_id();
+      if ($id != DRUPAL_AUTHENTICATED_RID) {
+        $form['#attached']['js'][] = array(
+            'data' => array(
+              'LoginToboggan' => array(
+                'preAuthID' => $id,
+        ),
+        ),
+            'type' => 'setting',
+        );
+      }      
+      break;
   }
 }
 
