Principal watches porn at office in Kerala, quits