Fixes csrf problem