/**
  * Note this is just an action handler --
  * it either forks back to loginAction or to the root index.
  *
  */
 public function loginvalidateAction()
 {
     $login_form = new Zupal_People_Loginform();
     if ($login_form->isValid($this->_getAllParams())) {
         $values = $login_form->getValues();
         $authorizer = new Zupal_People_Authorizer($values['username'], $values['password']);
         $auth = Zend_Auth::getInstance();
         $result = $auth->authenticate($authorizer);
         if (!$result->isValid()) {
             $this->_forward('login', NULL, NULL, array('message' => 'Sorry, bad login'));
         }
     } else {
         $this->_forward('login', NULL, NULL, array('message' => 'Sorry, bad login'));
     }
 }