has-error class for invalid input