Problem with submitting ajax form with autocomplete
I think you need to do this:

$form['actions']['submit'] = array(
    '#type' =&gt; 'submit',
    '#ajax' =&gt; array(
      'callback' =&gt; 'userpasswords2_callback',
      'wrapper' =&gt; 'box',
      'event' =&gt; 'click'
    ),
    '#value' =&gt; t('Submit'),
  );


just add 'event' => 'click' you your submit ajax element in the form. This must be done for all forms you want to be submitted through #ajax.