method createUser modified