Apply .error class to form elements with validation errors