add validate args to index.php