Added security to quiz controller