Added default error class for invalid fields