Refactor User.createUser so that it returns a promise