Log in and get a token.