Apply csrf verification