Ok, make sure you have this:
$query="SELECT paid, login, password, paid FROM clients WHERE login='$login' and password='".md5($password)."'";
and then leave the rest as it is in that checkpass func.
Then in the bit where you call checkPass(), I forget what it looks like now, can't be bothered to look it up, something like:
$row = checkpass();
make it like:
$row = checkpass();
if($row['paid'] == "whatever"){
header("location: http://example.com/");
} else {
// do whatever for if they haven't paid
}
Obviously change the location to whatever your url is for the ppl that have paid. Check the php help for info like
http://php.net/header 