Adding check for empty vin on checkChars in directive