updates to register.php