Update: Before applying has-error class, make sure it's not fieldset that is optional