convert shell script of adding users to using register variable

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>