if (($chka->id) OR (isset($user) AND isset($pass) AND $user==$chka->Username AND $pass==$chka->Password))