fix validation bug in manage page of 'lecture' and 'activity'