Changed the ‘login’ method to store CSRF token after logging in.