use loop for user creation