updated login to register

in register.php