How to add registration and login in a custom modules
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')));