Fixed some CSRF issues