fixed user creation bug