fixed an issue where the Csrf token would be put out of date