How to write a module that changes user role when account is created
Don't re-invent the wheel!  https://drupal.org/project/registration_role

Also I think you want to look at user_presave,  rather than user_insert.  https://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook_user_presave/7