Adding token generation and check system to register.php for CSRF attach prevention.