Adding temporary field to form to print ID's
Devel - Helper functions for Drupal developers and inquisitive admins. 

Add in hook_form_alte function dsm($form); and refresh your form page, you will get message with structured info.