Updated register.php to use a relative redirect