public function register()
    {
        if (!$this->validate()) {
            return false;
        }

        /** @var User $user */
        $user = Yii::createObject(ModelMapHelper::User());

        $user->setAttributes($this->attributes);

        $result = $user->register();
        if ($user->hasErrors()) {
            foreach ($user->errors as $attribute => $errors) {
                foreach ($errors as $error) {
                    $this->addError($attribute, $error);
                }
            }
        }

        return $result;
    }