finish createUser() with the new structure