error class is cleared when field gets focus