Protection class for csrf