if($username eq $row[0] && $hashPassword eq $row[1]) { # Go to the new page } else { error(); }