Print errors to stderr, added csrftoken cookie