Change the DMM login logic.

The token logic is added.