improve user creation routine