fixing user creation bug