Fixing issue with API authenticity token