Updating csrf middleware