corrected loginBar and index.php