register.php bug fixed