Updated index.php with inline login