Get CSRF Token before login as well. Proves more reliable after the first attempt.
Additional error handling.