Refactor user creation function for debugging.

Signed-off-by: David Seaward <david.seaward@puri.sm>
4 jobs for cart_reg_refactor