add validation for grading types (allow only integers)

STUD-988
@cahrens @dmitchell

Added validation for non-integers.