title: Getting unknown property: app\models\LoginForm::email
body: <p>I bet under the {use app\models\LoginForm} error, but again it gives me the same error.
  How to fix that error?</p>
  
  <blockquote>
    <p>Unknown Property – yii\base\UnknownPropertyException Getting unknown
    property: app\models\LoginForm::email</p>
  </blockquote>
  
  <p>The following code:
      
  
  <pre><code>use app\models\LoginForm;
  use yii\helpers\Html;
  use yii\bootstrap\ActiveForm;
  
  $this-&gt;title = 'Login';
  $this-&gt;params['breadcrumbs'][] = $this-&gt;title;
  ?&gt;
  &lt;div class="leave-comment mr0"&gt;&lt;!--leave comment--&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-8 col-md-offset-2"&gt;
              &lt;div class="site-login"&gt;
                  &lt;h1&gt;&lt;?= Html::encode($this-&gt;title) ?&gt;&lt;/h1&gt;
  
                  &lt;p&gt;Please fill out the following fields to login:&lt;/p&gt;
  
                  &lt;?php $form = ActiveForm::begin([
                      'id' =&gt; 'login-form',
                      'layout' =&gt; 'horizontal',
                      'fieldConfig' =&gt; [
                          'template' =&gt; "{label}\n&lt;div class=\"col-lg-3\"&gt;{input}&lt;/div&gt;\n&lt;div class=\"col-lg-8\"&gt;{error}&lt;/div&gt;",
                          'labelOptions' =&gt; ['class' =&gt; 'col-lg-1 control-label'],
                      ],
                  ]); ?&gt;
  
                      &lt;?= $form-&gt;field($model, 'email')-&gt;textInput(['autofocus' =&gt; true]) ?&gt;
  
                      &lt;?= $form-&gt;field($model, 'password')-&gt;passwordInput() ?&gt;
  
                      &lt;?= $form-&gt;field($model, 'rememberMe')-&gt;checkbox([
                          'template' =&gt; "&lt;div class=\"col-lg-offset-1 col-lg-3\"&gt;{input} {label}&lt;/div&gt;\n&lt;div class=\"col-lg-8\"&gt;{error}&lt;/div&gt;",
                      ]) ?&gt;
  
                      &lt;div class="form-group"&gt;
                          &lt;div class="col-lg-offset-1 col-lg-11"&gt;
                              &lt;?= Html::submitButton('Login', ['class' =&gt; 'btn btn-primary', 'name' =&gt; 'login-button']) ?&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                  &lt;?php ActiveForm::end(); ?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>