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')) ); $this->addElement('hidden', 'code'); return $this; } }