/**
  * Gets the password from the model and matches it against the value supplied
  * @param string $value The password to match
  * @return boolean Returns true if the passwords match, false otherwise
  */
 public function isValid($value)
 {
     $this->_setValue($value);
     $value = md5($this->_model->getUsername() . $value);
     if (!($this->_model->getPassword() == $value)) {
         $this->_error();
         return false;
     }
     return true;
 }
 protected function findUsername($username)
 {
     $model = new Model();
     $username = $model->getUsername($username)->fetch(PDO::FETCH_OBJ);
     return $username->checknb == 0 ? false : true;
 }