Fixed issue #27, placed the validations for term and section within a proper context