If user.level is null, set to 0