use constraint validation for core-input