public function unregister()
    {
        if ($this->prepare_hook)
        {
            Hook::unsubscribe('Wedeto.HTTP.Forms.Form.prepare', $this->prepare_hook);
            $this->prepare_hook = null;
        }

        if ($this->validate_hook)
        {
            Hook::unsubscribe('Wedeto.HTTP.Forms.Form.isValid', $this->validate_hook);
            $this->validate_hook = null;
        }
    }