Changed token login method.