Validate user required fields
I think you shouldn't create user this way, as it's bypassing all the controls made by drupal.

You can retrieve registration form this way:

drupal_get_form('user_register_form');


And print it like this:

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