Password confirmation before submitting a form I have a signature field uploaded in the user profile. So while submitting a form I need users to confirm with their login password to use the signature and copy it into the relevant field. Form gets submitted only the user inputs the correct password which will validate against active directory. Is there anyway we can do this.
You might want to use hook_form_FORM_ID_alter(). Then you can create a valitate function, that checks if the password is correct.

function mymodule_form_article_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // There will already be some validate handlers added so you need to add to the
  // array rather than overwrite it.
  $form['#validate'][] = 'mymodule_article_form_validate';
}

function mymodule_article_form_validate($form, &amp;$form_state) {
  //This is just a dummy example that will not 100% work, so you need the get the correct information.
  $password = 'TesT128#';
  if ($form_state['values']['password'] != $password) {
    form_set_error('password', t('You have entered the wrong password'));
  }
}