Removed validation file, updated index.php and index.js to test the api