Override getId(), returing key.
Added comment that $model->attributes obeys LoginForm::rules()