Recover from errors

When something goes wrong, tell people what happened and how to fix it. In the example, the unhelpful form shows only "Error 1042".
The actionable form says "That password is not correct" and offers two ways forward: Try again or Reset password.
Good error messages use plain language, explain the problem and suggest a solution. Keep them polite, and never blame the person.