Changed the SQL query statements to include SchoolID when getting Class and Term data
Added if statement to check if form is passing blank data in checkClass and processClass