Update checkconnected.php