public function check($email, $password){
$select=$this->getAdapter()->select()
->from($this->_name)
->where('users.email = ?', $email);
$stmt = $this->getAdapter()->query($select);
$result = $stmt->fetchAll();
$a=2;
if (!empty($result))
{
if ($result['password'] = $password) {
$a=1;
} else if (!$result['password'] = $password){
$a=0;
}
}
return $a;
}