Update and bug fixed  Register.php