Add CSRF checks to module.