make event register csrf excempt