A shopper in Manchester types her mobile number into a checkout the way she always writes it, with a space after the first five digits. She presses “Continue”. The field turns red: “Please enter a valid phone number.”
It is a valid phone number. It’s hers. She tries adding +44. Still red. She removes the zero. Still red. Nothing on the screen tells her that the only problem is the space.
She’s made up, but the moment isn’t. Baymard Institute watched a test participant go through almost exactly this at a UK appliance retailer. Unsure whether to add “+44”, he said: “I don’t know why that’s not working… I’d go to another site at this stage.” The site wouldn’t accept a space.
“Invalid” is a system talking to itself
Most checkout errors are written from the system’s point of view. The system knows exactly why it rejected the entry: it found a space, or a missing @, or a card number one digit short. Then it throws that knowledge away and says “invalid”.
Baymard’s article on adaptive error messages (December 2023) found that 98% of sites in its benchmark use generic error messages, “despite the back-end logic knowing the issue”. It observed participants taking “up to five minutes to resolve simple errors for tasks such as signing in, solely due to vague error message wording.” Most people get through in the end. The ones who don’t are stuck, and a shopper who can’t get past a validation error can’t place the order at all.
What a useful error does
Nielsen Norman Group’s error-message guidelines and the accessibility standard WCAG agree on the basics of form error messages. A good error does four things.
It appears where the problem is. NN/g’s first rule is to show the message “close to the error’s source”. A red banner at the top of a long form, saying “There were problems with your submission”, makes the shopper go looking. Put the message next to the field, and if you also use a summary at the top, make each line link to its field.
It says exactly what’s wrong. “Your card number is incomplete” beats “Your card number is invalid”. Baymard gives that example from a real checkout. The GOV.UK Design System, whose error message guidance was tested with users in live government services, says it plainly: different errors need different messages. An empty field, a field that’s too long and a field in the wrong format are three different problems.
It says how to fix it. WCAG 2.2 success criterion 3.3.3 Error Suggestion asks that, when an input error is detected and the fix is known, the suggestion is given to the user. “Enter a postcode, like SW1A 1AA” is a suggestion. “Postcode error” isn’t.
It keeps what they typed. NN/g puts it as “preserve the user’s input”, so people can edit what they entered instead of starting again. GOV.UK added the same guidance in January 2024. A checkout that clears the card details, or the whole address, because one field was wrong turns one error into five minutes of retyping.
The words matter
GOV.UK’s guidance is a good editing checklist for any shop:
- Don’t use “invalid” or “valid”. They don’t add anything.
- Don’t say “please” or “sorry”. They don’t help fix the problem.
- Don’t use “oops” or jokes. They wear thin on the third attempt.
- Avoid words that blame, like “forbidden”, “illegal” or “you forgot”. NN/g adds “incorrect” to that list.
- Use instructions for missing information (“Enter your email address”) and descriptions for wrong information (“Email address must include an @”).
Read each message out loud. If you wouldn’t say it to a customer standing in front of you, rewrite it.

Timing is part of the message
An error shown too early is as bad as a vague one. NN/g calls premature errors “a hostile pattern”, like “grading a test before the student has had a chance to answer”. Don’t flag an email address as wrong while someone is still typing it, or because they tabbed past a field to look at the next one.
Show it at the right moment instead. Baymard’s research on inline validation (January 2024) found that checking a field as soon as the shopper leaves it helps them fix mistakes while the entry is still fresh in mind, rather than after they’ve pressed the button and expected to move on. Its advice includes removing the error as soon as the entry is corrected, so a fixed field doesn’t stay red.
The best error is the one you didn’t need
Some errors exist only because the form is fussy. A phone field that rejects spaces. A card number field that rejects the spaces printed on the card. A postcode field that insists on capitals. Accepting these and tidying them up behind the scenes removes the error completely. Baymard makes the same point about a site that rejected special characters in a phone number: ideally, it “shouldn’t cause an error in the first place”.
Errors that aren’t the shopper’s fault
Not every error is about typing. Some of the most damaging ones come from the shop or the bank.
- A declined payment. “There was an error processing your payment” leaves people worrying about their bank balance. Say what you know: the bank declined it, whether the card has been charged, and what they can do now, such as trying another card. Only say “no money has been taken” if that’s true.
- A rejected discount code. “Coupon not valid” sends people off to search for another. “This code is for orders over £50. Add £8.50 to use it” tells them how to finish. NN/g praises a similar message from Target, which explains the threshold for same-day shipping without blaming the shopper for not spending enough.
- An item that’s sold out at checkout. NN/g’s advice is to offer a way forward, such as when it will be back or a restock alert, rather than a dead end.
Rewrite your five most common errors
You don’t need to redesign the checkout to fix this. Start with the messages people actually see.
- List the errors your checkout can show. Your developer can usually export them, and analytics can often tell you which ones fire most. GOV.UK recommends tracking how often people see each error.
- Pick the five most common.
- For each, write one message per cause: empty, wrong format, too short, not accepted.
- Put each message next to its field, check it doesn’t rely on colour alone, and make sure what the shopper typed stays in the field.
- Test it with someone who hasn’t seen the form. Give them a deliberately wrong entry and watch whether they can fix it without asking you.
An error message is the one moment the checkout talks to a shopper individually. Use it to tell them how to finish.