Bug Fix

fixed issue when adding classes if the year was not and integer or out
of date