Issue #216 Fixed validations of degree and number fields