Update applogin.php