When free entry is off, add invalid class to input if no data matches