getElement('password')->setRequired(true); $this->getElement('confirmPassword')->setRequired(true); return $this; } }