That script has the following:
if ($login == "error") {
// etc
}
This is not a good way to code (its old fashioned and lazy)
you could fix it by changing it to
if (isset($login)) {
if($login == "error") {
}
}
You should see if a variable exists before you make an evaluation on it !!
good luck buddy. 🙂