ValidatedInput is a compound component that includes a label, input, and error message with validation.