Fix issue with csrf