updating register.php