disables input field if diff is 0