Reformat user creation code