public function initElements()
    {
        $tokenElement = tao_helpers_form_FormFactory::getElement('token', 'Hidden');
        $this->form->addElement($tokenElement);
        
        $pass1Element = tao_helpers_form_FormFactory::getElement('newpassword', 'Hiddenbox');
        $pass1Element->setDescription(__('New password'));
        $pass1Element->addValidators(PasswordConstraintsService::singleton()->getValidators());
        $pass1Element->setBreakOnFirstError(false);
        $this->form->addElement($pass1Element);

        $pass2Element = tao_helpers_form_FormFactory::getElement('newpassword2', 'Hiddenbox');
        $pass2Element->setDescription(__('Repeat new password'));
        $pass2Element->addValidators(array(
            tao_helpers_form_FormFactory::getValidator('Password', array('password2_ref' => $pass1Element)),
        ));
        $this->form->addElement($pass2Element);
    }