Changes to createUser method