Reading starts here
ChurnAtlas

Accessible password fields: 8 settings to check

Short answer. Check 8 password input settings for accessible sign-up forms, with each rule tied to W3C, GOV.UK or Google guidance and a clear next step.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 10 min read

  1. Inputs The order, the outcome the customer agreed to and the people on both sides.
  2. Decision What counts as a first result and who owns each step.
  3. Next action Write the milestone, its owner and its date on the account page.

This checklist covers 8 password input settings for accessible sign-up forms, each tied to a named guidance source.

Key takeaways for how to configure accessible password fields

  • Make each password input's purpose programmatically identifiable, as the W3C criterion requires.
  • Position labels above the inputs, which Google suggests is probably best.
  • Disable spell check on password fields to avoid "spell-jacking," where tools gather personal identifiable information, according to GOV.UK.
  • If using multiple password inputs, ensure the 'show' and 'hide' toggles and labels for each are different, as stated by GOV.UK.
  • Do not reveal the source of the error in messages, as this can help fraudsters break into accounts, according to GOV.UK.

Configure password inputs with these 8 accessibility and security rules

This checklist defines the 8 configuration items for password inputs in customer onboarding flows. The first item is the programmatic purpose definition. According to W3C, this success criterion defines the types of user interface component input purposes, found in Section 7 of the WCAG 2.1 Recommendation, that must be programmatically identifiable.

The second item is label placement. The third is the show hide toggle. The fourth is disabling spell check. The fifth is restriction consistency. The sixth is error messaging. The seventh is the absence of a time limit. The eighth is clearing the password input.

According to W3C, the intent of this success criterion is to ensure that the purpose of a form input collecting information about the user can be programmatically determined, so that user agents can extract and present this purpose to users using different modalities.

Frontend engineers should verify these 8 settings during the build phase. Product managers should include these 8 items in the acceptance criteria for sign-up forms.

Audit your current sign-up form to ensure that spell check is disabled.

A filled reference table for password field standards

The following table maps each of the 8 configuration items to the specific publisher guidance that defines it. Use this reference to verify that your sign-up form aligns with established accessibility and security standards. Each row cites the source that provides the rule for that specific setting.

Setting Publisher Guidance
Autocomplete purpose W3C This success criterion defines the types of user interface component input purposes, found in Section 7 of the WCAG 2.1 Recommendation, that must be programmatically identifiable, according to W3C.
Label placement Google It's probably best to put your labels above your inputs, according to Google.
Show hide toggle GOV.UK When a page has two or more password inputs, the ‘show’ and ‘hide’ toggles and labels for each password input must be different, according to GOV.UK.
Spell check off GOV.UK Doing this can avoid making your service vulnerable to ‘spell-jacking’, where security researchers have found some spell checking tools gathering personal identifiable information, even user’s passwords, from password input fields to send to third party services, according to GOV.UK.
Restriction consistency GOV.UK Any restrictions must be identical wherever the user creates or enters a password, according to GOV.UK.
Error messaging GOV.UK Revealing the source of the error can help fraudsters break into people’s accounts, according to GOV.UK.
No time limit W3C Web Accessibility Initiative If possible, don’t set a time limit to fill out the form, according to W3C Web Accessibility Initiative.
Clear on submit GOV.UK Clear any information entered into the password input, according to GOV.UK.

Review each row against your current implementation. If a cell does not match your code, prioritize the fix based on the severity of the accessibility or security risk described in the guidance.

Why programmatic purpose matters for assistive tech

The W3C explains that some people with cognitive disabilities may not understand the input's purpose from the label alone, according to W3C.

The autocomplete attribute provides this necessary context. The W3C notes that if an input field accepts two different types of input purpose, such as combined user name and user email fields, and the technology used does not allow multiple purpose values to be defined, it is valid to provide either one or the other value or leave out the designation of input purpose altogether, according to W3C. For standard password fields, however, the purpose is singular and clear, so the attribute should be explicitly set.

Label placement also affects how users perceive and interact with fields. Google advises that it's probably best to put your labels above your inputs, according to Google. This placement makes the label visible before the user focuses on the field, reducing the chance of confusion about what information is required.

For your onboarding form, ensure that each password input has a visible label positioned above the field. If you are building a multi-step onboarding flow, verify that these settings remain consistent across all password fields.

Handling show and hide toggles without confusion

When building a sign-up form, the visual state of the password field must always match the label of the control that changes it. The GOV.UK Design System warns that a password can be shown or hidden without the user pressing a button, which creates a mismatch with the button label GOV.UK. In this scenario, a user sees a button labeled to show a password that is already visible, causing confusion about the current state of the input.

If your interface includes two or more password inputs on a single page, you must differentiate the controls for each field. The GOV.UK Design System states that the show and hide toggles and labels for each password input must be different GOV.UK. This prevents users from clicking the wrong toggle when multiple fields are present.

To avoid these errors, ensure your JavaScript logic updates the button text immediately when the field state changes. If the password is visible, the button should say hide; if it is hidden, the button should say show. Do not rely on CSS alone to change visibility without updating the accessible name of the button.

For forms with a single password field, verify that no other part of the interface can trigger a visibility change. Check for browser extensions or autofill behaviors that might reveal the text without user interaction. If such a behavior is possible, the button label will be incorrect until the user clicks it, violating the state consistency rule.

Review your toggle implementation to ensure the accessible name reflects the current state. A button should say show password while the text is hidden and hide password while it is visible. This clarity helps users who rely on screen readers to understand what will happen when they activate the control.

Illustrative example: 2 password inputs on one page

A sign-up page with 2 password inputs, one for a new password and one to confirm it, gives each input its own toggle. The first toggle reads “Show password” while hidden and “Hide password” while visible. The second reads “Show confirmation” and “Hide confirmation”, so the two controls stay distinct.

Setting consistent restrictions and error messages

Security restrictions for password inputs must align with the specific needs of your service. According to GOV.UK, you should choose restrictions that meet the security needs of your service and remain clear and consistent about them. This consistency is critical because any restrictions must be identical wherever the user creates or enters a password, as stated by GOV.UK. If your sign-up form enforces a specific character set, your password reset flow must enforce the exact same rules. Discrepancies between these interfaces confuse users and undermine trust in the form’s validation logic.

When validation fails, the wording of the error message carries significant security weight. According to GOV.UK, revealing the source of the error can help fraudsters break into people’s accounts. For example, telling a user that a username is valid but the password is incorrect confirms the existence of that account to an attacker. Instead, use generic error messages that do not distinguish between a missing account and an incorrect credential. This approach prevents attackers from harvesting valid email addresses or usernames through simple trial and error.

Time limits on form completion introduce additional friction that can compromise accessibility. According to W3C Web Accessibility Initiative, if possible, don’t set a time limit to fill out the form. Users who rely on assistive technologies or who are reading instructions carefully may require more time than a standard session timeout allows. Implementing a hard time limit can force users to restart their progress, leading to frustration and potential abandonment of the onboarding flow.

To apply these rules, review your current validation logic. Ensure that your error messages are generic and do not reveal whether a specific identifier exists in your database. Verify that your password complexity rules are identical across all entry points, including registration, login, and recovery. Finally, if possible, avoid a time limit for filling out the form. If you must implement a timeout for security reasons, ensure it is long enough to accommodate users with slower input speeds and provide a clear mechanism to extend the session. For wider account controls, see Password policy: 8 controls for account onboarding and Password controls: 7 checks for account sign-up.

Next step: audit your sign-up form today

Today, audit your current sign-up form against the 8 configuration rules above, and note any rule it does not yet meet.

FAQ: How to configure accessible password fields

Why should I disable spell check on password fields?

Disabling spell check can help avoid making your service vulnerable to “spell-jacking,” a practice where security researchers have found some spell checking tools gathering personal identifiable information, even users’ passwords, from password input fields to send to third-party services, according to GOV.UK. This specific risk involves the extraction of sensitive data by external tools interacting with the input field.

What is the correct label for a show password button?

The label must accurately reflect the current state of the password visibility to avoid confusion. GOV.UK notes that mismatches occur when a password is shown or hidden without the use of a button, causing the user to see a button to “show” a password that is already visible, according to GOV.UK. Ensure the button text updates dynamically to match whether the text is currently masked or revealed.

How do I handle combined username and email fields?

If an input field accepts two different types of input purpose, such as combined user name and user email fields, and the technology used does not allow multiple purpose values to be defined, it is valid to provide either one or the other value or leave out the designation of input purpose altogether, according to W3C. This approach applies specifically when the underlying technology restricts you to a single purpose value.

Is it okay to use a second field for password confirmation?

Yes, as long as each password input on the page has its own “show” and “hide” toggles and labels, according to GOV.UK. This requirement ensures users can distinguish between the distinct password fields present on the form.

Sources

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.