diff -u pam_auth/pam_auth.module pam_auth.new/pam_auth.module
--- pam_auth/pam_auth.module	2008-07-14 16:44:58.000000000 +0200
+++ pam_auth.new/pam_auth.module	2008-08-07 16:56:22.000000000 +0200
@@ -52,7 +52,8 @@
     case 'user_login_block':
       // Add pam_auth authentication if it's enabled.
       if (!empty($form_state['post']['name']) && variable_get('pam_auth_enabled', FALSE)) {
-        $form['#validate'][1] = 'pam_auth_distributed_validate';
+	$form['#validate'][3] = $form['#validate'][2];
+        $form['#validate'][2] = 'pam_auth_distributed_validate';
       }
       if (variable_get('pam_auth_enabled', FALSE) && !variable_get('pam_auth_disable_password_changes', FALSE)) {
         unset($form['links']);

