Fixed csrf problems