LoginForm Error #256

Hi Everyone

While changing some wording on my Login Form, i could not change the Username field label text from “login” to Username.

<?= $form->field($model, 'login', [ 'inputOptions' => [ 'autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '1', 'placeholder' => Yii::t('youdate', 'E-mail or Username'), ] ]) ?>

By doing so, it gives an Error #256. However, i want Username displayed as the label just like other fields like Password which looks as follows,

<?= $form->field($model, 'password', [ 'inputOptions' => [ 'class' => 'form-control', 'tabindex' => '2', 'placeholder' => Yii::t('youdate', 'Password'), ]]) Below are the files associated with the login.php file and seem not sure what to change for this to work. ``` `use app\helpers\Html; use youdate\widgets\ActiveForm; use youdate\widgets\Connect; /** @var \app\base\View $this */ /** @var \app\forms\LoginForm $model */` ``` ![E256|690x431](upload://9TcCDwI4CFn5ifeKZCvhmp78Kbf.png) As always, any help will be much appreciated.

$form->field($model, 'login', is attribute/field name. Field name is login or username? to change label $form->field($model, 'username', [ 'inputOptions' => [ 'autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '1', 'placeholder' => Yii::t('youdate', 'E-mail or Username'), ] ])->label('Login')