added the token var to the reg method
testing reg form