Added error message to index.php