index.php displays error messages. All syntax issues fixed