validator for fixed numbers