correct init() and complete createUser() and updateUser()