registration javascript edit
register.php updated