Fixing issue with csrf tokens being on wrong attribute