Fixed some CSRF problems