Added `yii\base\InvalidValueException`.
Refactored `yii\web\User`.