Implemented validation for class tab.