My learning 0 of 20 lessons complete
Start lesson 1 →
Back to compare picker

Password creation vs Password input vs Inline validation vs Error summary

Use password creation when a user must choose a new reusable secret; use password input for entering an existing secret, inline validation for field-level creation feedback, and error summary for reachable recovery after submit.

Learn the decision

Match the interaction to the person's task

Use password creation when a user must choose a new reusable secret; use password input for entering an existing secret, inline validation for field-level creation feedback, and error summary for reachable recovery after submit.

Password creation

Use it when: The user is creating an account with a reusable password.

Make this state clear: Too-short state with the entered value preserved and a field-level length message.

Observe the result: The person reaches a clear outcome.

Study the full pattern →

Password input

Use it when: The user needs to enter an existing password, passphrase, or PIN-like memorized secret.

Make this state clear: Initial hidden state with label, autocomplete purpose, spellcheck off, autocapitalization off, and show control.

Observe the result: The person reaches a clear outcome.

Study the full pattern →

Inline validation

Use it when: A single field has a specific correctable problem.

Make this state clear: Invalid field with preserved user value and adjacent correction text.

Observe the result: Validation appears after blur or submit when it helps correction.

Study the full pattern →

Error summary

Use it when: Form submission can produce one or more errors.

Make this state clear: Failed-submit state with summary visible near the form heading.

Observe the result: After failed submit, focus or reading order makes the summary discoverable before users scan the form.

Study the full pattern →

Practice the judgment: Imagine this situation: A form blocks password-manager paste or generated passwords, so users choose a weaker secret they can type manually. Write the person's goal, choose one of these patterns, and show the state that helps the person continue. Use the decision rules and source trail below to explain your choice.

Review the underlying principle →

Decision dimensions

Dimension Password creationPassword inputInline validationError summary
UI or UX UI + UX - New authentication secret selection flowUI + UX - Authentication secret entry controlUI + UX - Field-level validation feedbackUI + UX - Form recovery summary
UI guidance Keep the guidance focused on what actually affects acceptance: length, banned or breached value checks, service-specific terms, and password-manager compatibility rather than a decorative checklist of character classes.Render password entry as a labelled password field that is hidden by default, uses the correct autocomplete purpose, offers a clear show and hide control, disables spellcheck and automatic capitalization, and keeps helper and error text connected to the input.Render a labeled field with hint text, field-adjacent error text, invalid styling, preserved value, and corrected state.Render a top-of-form summary block with heading, linked error list, and matching field-level error messages.
UX guidance Use password creation when a user is choosing a new reusable secret during registration, password reset, first-time setup, or password change.Use password input when a user enters an existing secret to sign in, reauthenticate, unlock a protected action, or confirm account ownership.Help the person reach a clear task outcome.Move users from the summary to the exact field, group, or first invalid control that needs correction.
Good UI A signup form labels the field New password, uses autocomplete new-password, allows password-manager generation, says Use at least 15 characters or a generated password, and rejects Password123 because it is commonly used.A reauthentication dialog asks for Current password, lets the user show it temporarily, accepts a pasted manager value, and clears the field after an incorrect attempt.Error text appears next to the field with readable spacing, persistent label, hint text, and the invalid value still visible.Top-of-form summary with a clear heading, linked error list, and matching inline field messages.
Bad UI A reset form asks for a password reminder question and then emails the new password to the user.A login form uses a normal text field named Password and leaves the secret visible on screen.Error message appears far from the field it describes.Summary and field messages visually disconnected or contradictory.
Good UX The person reaches the intended result with clear feedback.The person reaches the intended result with clear feedback.Validation appears after blur or submit when it helps correction.After failed submit, focus or reading order makes the summary discoverable before users scan the form.
Bad UX A user is forced to rotate a password every month and chooses predictable variations that are easier to guess.A failed login page says the password is wrong, confirming that the username exists.Showing errors before users type.Only showing errors below the fold.
Best fit The user is creating an account with a reusable password.The user needs to enter an existing password, passphrase, or PIN-like memorized secret.A single field has a specific correctable problem.Form submission can produce one or more errors.
Avoid when The user is only entering an existing password to sign in or reauthenticate.The task is choosing a new password and needs creation-specific guidance, strength feedback, and blocklist rejection.The main recovery task is finding several errors across a submitted page.The message is a system failure, permission problem, or outage rather than a validation issue.
Required state Too-short state with the entered value preserved and a field-level length message.Initial hidden state with label, autocomplete purpose, spellcheck off, autocapitalization off, and show control.Invalid field with preserved user value and adjacent correction text.Failed-submit state with summary visible near the form heading.
Accessibility burden Use a visible label that says New password or Create a password rather than only Password when the user is choosing a new value.Use a visible label that names the password purpose, such as Password or Current password.Expose invalid state on the input and connect error text to the field description where possible.Use a heading and alert behavior that makes the summary discoverable.
Common misuse Using uppercase, lowercase, number, and symbol checklists as the main security signal.Using type text for passwords.Showing field errors before users have interacted with the control.Replacing field-level messages with only a top-level summary.

Password creation

UI or UX
UI + UX - New authentication secret selection flow
UI guidance
Keep the guidance focused on what actually affects acceptance: length, banned or breached value checks, service-specific terms, and password-manager compatibility rather than a decorative checklist of character classes.
UX guidance
Use password creation when a user is choosing a new reusable secret during registration, password reset, first-time setup, or password change.
Good UI
A signup form labels the field New password, uses autocomplete new-password, allows password-manager generation, says Use at least 15 characters or a generated password, and rejects Password123 because it is commonly used.
Bad UI
A reset form asks for a password reminder question and then emails the new password to the user.
Good UX
The person reaches the intended result with clear feedback.
Bad UX
A user is forced to rotate a password every month and chooses predictable variations that are easier to guess.
Best fit
The user is creating an account with a reusable password.
Avoid when
The user is only entering an existing password to sign in or reauthenticate.
Required state
Too-short state with the entered value preserved and a field-level length message.
Accessibility burden
Use a visible label that says New password or Create a password rather than only Password when the user is choosing a new value.
Common misuse
Using uppercase, lowercase, number, and symbol checklists as the main security signal.

Password input

UI or UX
UI + UX - Authentication secret entry control
UI guidance
Render password entry as a labelled password field that is hidden by default, uses the correct autocomplete purpose, offers a clear show and hide control, disables spellcheck and automatic capitalization, and keeps helper and error text connected to the input.
UX guidance
Use password input when a user enters an existing secret to sign in, reauthenticate, unlock a protected action, or confirm account ownership.
Good UI
A reauthentication dialog asks for Current password, lets the user show it temporarily, accepts a pasted manager value, and clears the field after an incorrect attempt.
Bad UI
A login form uses a normal text field named Password and leaves the secret visible on screen.
Good UX
The person reaches the intended result with clear feedback.
Bad UX
A failed login page says the password is wrong, confirming that the username exists.
Best fit
The user needs to enter an existing password, passphrase, or PIN-like memorized secret.
Avoid when
The task is choosing a new password and needs creation-specific guidance, strength feedback, and blocklist rejection.
Required state
Initial hidden state with label, autocomplete purpose, spellcheck off, autocapitalization off, and show control.
Accessibility burden
Use a visible label that names the password purpose, such as Password or Current password.
Common misuse
Using type text for passwords.

Inline validation

UI or UX
UI + UX - Field-level validation feedback
UI guidance
Render a labeled field with hint text, field-adjacent error text, invalid styling, preserved value, and corrected state.
UX guidance
Help the person reach a clear task outcome.
Good UI
Error text appears next to the field with readable spacing, persistent label, hint text, and the invalid value still visible.
Bad UI
Error message appears far from the field it describes.
Good UX
Validation appears after blur or submit when it helps correction.
Bad UX
Showing errors before users type.
Best fit
A single field has a specific correctable problem.
Avoid when
The main recovery task is finding several errors across a submitted page.
Required state
Invalid field with preserved user value and adjacent correction text.
Accessibility burden
Expose invalid state on the input and connect error text to the field description where possible.
Common misuse
Showing field errors before users have interacted with the control.

Error summary

UI or UX
UI + UX - Form recovery summary
UI guidance
Render a top-of-form summary block with heading, linked error list, and matching field-level error messages.
UX guidance
Move users from the summary to the exact field, group, or first invalid control that needs correction.
Good UI
Top-of-form summary with a clear heading, linked error list, and matching inline field messages.
Bad UI
Summary and field messages visually disconnected or contradictory.
Good UX
After failed submit, focus or reading order makes the summary discoverable before users scan the form.
Bad UX
Only showing errors below the fold.
Best fit
Form submission can produce one or more errors.
Avoid when
The message is a system failure, permission problem, or outage rather than a validation issue.
Required state
Failed-submit state with summary visible near the form heading.
Accessibility burden
Use a heading and alert behavior that makes the summary discoverable.
Common misuse
Replacing field-level messages with only a top-level summary.
Decision rules
  • Prefer password creation when the task is account registration, password reset, first-time setup, or changing a password to a new reusable secret.
  • Prefer password input when the user is entering an existing password for sign-in, reauthentication, or current-password confirmation; do not show new-password strength guidance on every sign-in field.
  • Prefer inline validation inside password creation for correctable field-level guidance such as too short, commonly used, breached, contains the service name, or does not match an already stated restriction.
  • Prefer error summary when the user submits account creation or password reset with multiple problems and needs a top-of-form list that links back to the password field.
  • Use autocomplete new-password for new or changed passwords, current-password for the current password field in a change flow, and keep account identifier autocomplete separate.
  • Help users create strong and unique passwords by supporting password managers and generated passwords, accepting paste, allowing long values, and avoiding arbitrary composition rules.
  • Use minimum length, breached-password or common-password checks, and service-specific banned terms instead of requiring mixtures of uppercase, lowercase, number, and symbol characters.
  • If a chosen password is rejected, explain the reason enough for correction without revealing the full banned list or encouraging trivial substitutions.
  • Do not require periodic changes or password reminders; use reset links or codes, compromise-driven rotation, MFA, or passwordless routes for stronger account protection.
  • Do not show the new password on review pages, logs, analytics, support tools, receipts, or account summaries; creation owns selection and safe acceptance, not later display.
Inspect live examples
Failure modes
  • A signup form requires uppercase, lowercase, number, symbol, no spaces, and a short maximum, causing users to make predictable variations.
  • A form blocks password-manager paste or generated passwords, so users choose a weaker secret they can type manually.
  • A weak password such as Password123 is accepted because the form only checks character classes.
  • A strength meter says Strong for a service-name variation that appears on a banned-password list.
  • A password reset flow sends the new password by email or asks for a reminder question.
  • An error summary says only Invalid password and gives no route back to the rejected field or reason.

Saved items