--- inline_registration.module	2010-12-26 20:26:38.000000000 +0100
+++ inline_registration.module	2010-12-26 20:26:25.000000000 +0100
@@ -29,13 +29,10 @@ function inline_registration_form_alter(
     // Rename the user field to remind the user that this is the registration form and not a login field
     $form['register']['form']['name']['#title'] = t('Choose a Username');
 
-    // Add our own validation and submit function to the node_form
-    $form['#validate'][] = 'inline_registration_validate';
-    $form['#submit'][] = 'inline_registration_submit';
-
-    // And ensure our submit function is called first (so the node is authored by the newly created user)
-    $form['#submit'] = array_reverse($form['#submit']);
-    
+    // Add our own validation and submit callbacks to the node_form before all other
+    // submit and validation callbacks.
+    array_unshift($form['#validate'],'inline_registration_validate');
+    array_unshift($form['#submit'],'inline_registration_submit');
   }
     
   if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
