addElement( 'password', 'password', array('label' => 'Password:', 'required' => true, 'attribs' => array('autocomplete' => 'off')) ); $this->getElement('password')->addValidator('ConfirmPassword', false, array('confirmPassword')); $this->addElement( 'password', 'confirmPassword', array('label' => '   Confirm Password:', 'required' => true, 'attribs' => array('autocomplete' => 'off'), 'escape' => false) ); $this->getElement('confirmPassword')->getDecorator('Label')->setOption('escape', false); $this->addElement('hidden', 'code'); return $this; } }