/**
  * Signs user up, using regular workflow.
  * @return mixed response
  */
 public function actionIndex()
 {
     $model = new SignupForm();
     if ($model->load(Yii::$app->request->post())) {
         if (($user = $model->signup()) !== null) {
             if (Yii::$app->getUser()->login($user)) {
                 return $this->goHome();
             }
         }
     }
     return $this->render('index', ['model' => $model]);
 }