# Log in

> People sign in often, and small obstacles such as blocked pasting, short sessions and lockouts add up.

Area: Accounts and sign-in. Evidence behind the answer: Weak. Last checked November 12, 2026.
Page: https://uxreference.com/accounts/log-in

## The answer

Never block paste or password managers, and slow repeated attempts instead of locking people out.

- **Settled, WCAG AA.** Never block paste or autofill in username, password or code fields. (https://uxreference.com/accounts/log-in#rule-2)
- **Moderate.** Build the form so password managers can recognize, fill and save it, and check it still works after a password change. (https://uxreference.com/accounts/log-in#rule-3)
- **Weak.** Don’t lock accounts after a few wrong passwords. Slow attempts down in ways that spare the real owner. (https://uxreference.com/accounts/log-in#rule-5)

## The problem

Logging in is done often and under mild annoyance, so small obstacles such as blocked paste, short sessions and lockouts add up across every visit.

## How to decide

None. The rules apply together; the two layout choices are unsettled ([rules 8 and 9](https://uxreference.com/accounts/log-in#rule-8)).

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Logging in must not depend on remembering or copying out a secret unless there is another way or help such as a password manager or paste.

- Applies when: Any log-in step.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 success criterion 3.3.8 Accessible Authentication (Minimum), level AA.

Sources: [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html)

Link: https://uxreference.com/accounts/log-in#rule-1

#### Rule 2. Settled, WCAG AA

Never block paste or automatic filling in username, password or code fields.

- Applies when: Log-in fields.
- Based on: Standard or law
- Principle: Work for everyone

Why: Blocking paste or autofill fails WCAG 3.3.8 (AA) unless another route exists. NIST SP 800-63B-4 says verifiers shall allow password managers and autofill. A crawl found about 0.9% of login pages block paste.

Sources: [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html); [NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)](https://pages.nist.gov/800-63-4/sp800-63b.html); [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html); [A Large-Scale Measurement of Website Login Policies](https://par.nsf.gov//servlets/purl/10507670)

Link: https://uxreference.com/accounts/log-in#rule-2

#### Rule 3. Moderate

Build the form so password managers can recognize, fill and save it, and check that it still works after a password change.

- Applies when: Log-in and change-password forms.
- Based on: Research
- Principle: Let practiced people go faster

Why: An interview study (n=30) found people value autofill and that it sometimes fills an old password, drops the username or submits half-filled forms. OWASP asks for standard inputs. One qualitative study, so 3.

Sources: [Why people (don't) use password managers effectively](https://files.usenix.org/s3fs-public/cdn/soups2019-pearman.pdf); [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html); [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html)

Link: https://uxreference.com/accounts/log-in#rule-3

#### Rule 4. Moderate

Tell people when Caps Lock is on, and consider accepting the most common slips.

- Applies when: Typing a password.
- Based on: Research
- Principle: Prevent errors

Why: One paper with a company's log data: about 9% of failed logins were correctable typos, mostly case and Caps Lock, and the company reported a Caps Lock indicator cut those errors by about 75%. The indicator figure is the company's own, reported in the paper.

Sources: [Password Typos and How to Correct Them Securely](https://www.arijuels.com/wp-content/uploads/2016/07/CAAJ16.pdf)

Link: https://uxreference.com/accounts/log-in#rule-4

#### Rule 5. Weak

Do not lock an account after a handful of wrong passwords; slow attempts down in ways that spare the real owner.

- Applies when: Protecting against guessing.
- Based on: Research
- Principle: Prevent errors

Why: A simulation, read as abstract only, estimates a three-strikes lockout locks out about 4% of honest users and suggests ten. No live user study. Logs from two universities show lockouts were rare there.

Sources: [DALock: Password Distribution-Aware Throttling](https://petsymposium.org/popets/2022/popets-2022-0084.pdf); [Empirical Measurement of Systemic 2FA Usability](https://faculty.cc.gatech.edu/~mbailey/publications/usesec20_2fa.pdf); [Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)

Link: https://uxreference.com/accounts/log-in#rule-5

#### Rule 6. Moderate

Keep people signed in on a device they have marked as trusted for as long as the risk allows; short sessions cost more time than the second factor saves.

- Applies when: Setting session length and device remembrance.
- Based on: Research
- Principle: Let practiced people go faster

Why: Logs from two universities (tens of millions of events): remembering the device covered about 70% of logins, yet most of the time difference came from short session timeouts. Second-factor logins at two institutions, so 3.

Sources: [Empirical Measurement of Systemic 2FA Usability](https://faculty.cc.gatech.edu/~mbailey/publications/usesec20_2fa.pdf)

Link: https://uxreference.com/accounts/log-in#rule-6

#### Rule 7. Weak

Explain what a remember-me option does.

- Applies when: Offering remembrance.
- Based on: Research
- Principle: Speak the person’s language

Why: The interview study found confusion about save prompts and remember-me. One qualitative source.

Sources: [Why people (don't) use password managers effectively](https://files.usenix.org/s3fs-public/cdn/soups2019-pearman.pdf)

Link: https://uxreference.com/accounts/log-in#rule-7

#### Rule 8. Unsettled

Whether to ask for the identifier first and the password on a second step is unsettled.

Until the evidence settles, use this default: Use one form with both fields unless different users need different sign-in methods.

- Applies when: Laying out the log-in.
- Based on: Convention
- Principle: Let practiced people go faster

Why: No user study or experiment was found.

Sources: [The Quest to Replace Passwords: A Framework for Comparative Evaluation of Web Authentication Schemes (extended technical report)](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-817.pdf)

Link: https://uxreference.com/accounts/log-in#rule-8

#### Rule 9. Unsettled

How specific a failed log-in message may be is a security and usability trade-off no opened source tests.

Until the evidence settles, use this default: Say the combination was not recognized, offer reset, and do not confirm which part was wrong.

- Applies when: Wrong username or password.
- Based on: Convention
- Principle: Help people recover from errors

Why: The relevant sections of the security guidance were not read in this pass; no user study was found.

Sources: [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)

Link: https://uxreference.com/accounts/log-in#rule-9

## Accessibility requirements

- WCAG 3.3.8 (AA): no cognitive test without an alternative; paste and autofill must work. (https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html)
- Typing a one-time code by hand does not comply on its own; see [One-time codes](https://uxreference.com/forms/one-time-code).

## Common mistakes

- Blocking paste in the password field.
- A session that ends after a few minutes of ordinary use.
- Locking the account after three tries.

## Still open

- Identifier-first or single form? No evidence.
- Sign-in by emailed link: no user study found; one expert assessment rates it slow because of email delay.
- Not read in this pass: the throttling and session sections of NIST SP 800-63B-4, and the error-message and lockout sections of the OWASP guidance.

## Related problems

- [Sign up](https://uxreference.com/accounts/sign-up): Do not require an account where the service works without one, and ask only for what the account needs.
- [Password reset](https://uxreference.com/accounts/password-reset): Send a single-use, expiring link to a confirmed address, and do not use security questions.
- [Passkeys](https://uxreference.com/accounts/passkeys): Offer passkeys at sign-up and recovery, and show people where each one lives and how to remove it.
- [Autofill and identifying input purpose](https://uxreference.com/forms/autofill): Mark each field with what it is for, and never block autofill, pasting or password managers.
- [Show password](https://uxreference.com/forms/password-show): Hide the password by default, with a control that shows it.
- [One-time codes](https://uxreference.com/forms/one-time-code): Use one field that can be pasted into and filled automatically, and do not submit by itself.

## Sources

- [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html). W3C WAI, 2023, normative standard, informative Understanding document.
- [NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)](https://pages.nist.gov/800-63-4/sp800-63b.html). NIST, 2025, normative standard.
- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html). OWASP Cheat Sheet Series, n.d., community security guidance.
- [A Large-Scale Measurement of Website Login Policies](https://par.nsf.gov//servlets/purl/10507670). Al Roomi, Li (Georgia Tech), n.d., automated black-box crawl of login, sign-up and reset flows (data collected about Dec 2023 to Jan 2024 by the earlier reader's account).
- [Why people (don't) use password managers effectively](https://files.usenix.org/s3fs-public/cdn/soups2019-pearman.pdf). Pearman et al. (SOUPS 2019), 2019, semi-structured in-person interviews, about one hour, inductive coding (two coders, kappa 0.84 on five interviews).
- [Password Typos and How to Correct Them Securely](https://www.arijuels.com/wp-content/uploads/2016/07/CAAJ16.pdf). Rahul Chatterjee, Anish Athalye, Devdatta Akhawe, Ari Juels, Thomas Ristenpart, 2016, MTurk transcription study plus instrumentation of Dropbox production logins plus security simulation.
- [DALock: Password Distribution-Aware Throttling](https://petsymposium.org/popets/2022/popets-2022-0084.pdf). Jeremiah Blocki, Wuwei Zhang (Purdue); PoPETs 2022(3), pp. 516-537, 2022, simulation of lockout policies with modeled honest users and an optimal untargeted attacker.
- [Empirical Measurement of Systemic 2FA Usability](https://faculty.cc.gatech.edu/~mbailey/publications/usesec20_2fa.pdf). Reynolds, Samarin, Barnes, Judd, Mason, Bailey, Egelman (USENIX Security 2020), 2020, analysis of operational 2FA logs, telephony records and support tickets from two mandatory 2FA rollouts, plus simulation of "remember this device" windows.
- [Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html). OWASP Cheat Sheet Series, n.d., community security guidance.
- [The Quest to Replace Passwords: A Framework for Comparative Evaluation of Web Authentication Schemes (extended technical report)](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-817.pdf). Bonneau, Herley, van Oorschot, Stajano (University of Cambridge Computer Laboratory, UCAM-CL-TR-817), 2012, expert rating of 35 authentication schemes against 25 benefits (8 usability, 6 deployability, 11 security); ratings made by one co-author per scheme, reviewed by the others.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
