Fixed validation errors in index.php