register.php adjusted