added registration to index.php