fixed reg.php