Move profile into index, discard old index and make register.php. Apply necessary changes on every file.