fix user creation bug