Modified register.php