Update middlelogin.php