fixed registration module
fix conflicts on api/index.php and tower.php