public function beforeValidate()
 {
     if (parent::beforeValidate()) {
         $this->user = User::findByUsername($this->login);
         return true;
     } else {
         return false;
     }
 }