Make sure login() is called after authenticate() to set needed vars.