code: public function register()
      {
          if (!$this->validate()) {
              return false;
          }
  
          $this->user->setAttributes([
              'email'    => $this->email,
              'username' => $this->username,
              'password' => $this->password
          ]);
  
          return $this->user->register();
      }
docs: Registers a new user account.
  @return bool