How to add registration and login in a custom modules I am creating a multi step form and in a one step i want to add user registration and login forms in as tabs and i have custom module which is uses to load multi step form,my problem is how i add registration and login forms in my page i try with things but didi't work out

  function garland_user_bar() {
  global $user;                                                                
  $output = '';

  if (!$user-&gt;uid) {                                                           
    $output .= drupal_get_form('user_login_block');                            
  }                                                                            
  else {                                                                       
    $output .= t('&lt;p class="user-info"&gt;Hi !user, welcome back.&lt;/p&gt;', array('!user' =&gt; theme('username', $user))); 

    $output .= theme('item_list', array(
      l(t('Your account'), 'user/'.$user-&gt;uid, array('title' =&gt; t('Edit your account'))),
      l(t('Sign out'), 'logout')));
  }

  $output = '&lt;div id="user-bar"&gt;'.$output.'&lt;/div&gt;';
  return $output;
}
You to need render the form element.

Use the following to print the forms:

print(drupal_render(drupal_get_form('user_register_form')));
print(drupal_render(drupal_get_form('user_login_block')));