Reading starts here
ChurnAtlas

Password controls: 7 checks for account sign-up

Short answer. Seven controls for sign-up passwords: length, expiration, errors, MFA, hashing, autocomplete, and user guidance from named sources.

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

Published · Sources checked · 11 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.

Use the password controls below to harden sign-up and password reset forms.

Key takeaways

  • Set the autocomplete attribute to new-password when users create a password, as recommended by the GOV.UK Design System.
  • Do not reveal whether a user entered the username or password incorrectly; keep error messages generic according to the GOV.UK Design System.
  • Implement multi-factor authentication (MFA), which the OWASP Cheat Sheet Series identifies as the best defense against the majority of password-related attacks.
  • Ensure your password hashing uses a salt value of at least 32 bits in length, according to NIST.

Secure your onboarding password fields with these 7 controls

This post collects the technical and policy rules below from NCSC, GOV.UK, Microsoft, NIST, and OWASP for sign-up and password reset forms. Pair it with Password policy: 8 controls for account onboarding. The title counts seven controls: length limits, expiration policies, error handling, MFA integration, storage hashing, input attributes, and user guidance.

Remove any generic error messages that reveal whether the username or password was incorrect. Instead, display a single message for both invalid credentials and failed password attempts.

Defining password length and strength standards

Set your password input field to accept a maximum of at least 64 characters to allow passphrases, as advised in the Authentication Cheat Sheet Series according to OWASP. This aligns with the recommendation to implement a reasonable maximum password length, at least 64 characters, as discussed in the Implement Proper Password Strength Controls section of the same source. By supporting longer strings, you accommodate users who choose passphrases over short, complex passwords. The Authentication Cheat Sheet Series also defines weak password thresholds based on whether multi-factor authentication is enabled. If MFA is enabled, passwords shorter than 8 characters are considered to be weak, according to OWASP. If MFA is not enabled, passwords shorter than 15 characters are considered to be weak, according to OWASP. These thresholds help you determine when to prompt users for stronger credentials during onboarding.

For cloud account administrators, specific length recommendations exist for enterprise environments. Even though Microsoft 365 requires at least eight characters, for stronger security, we recommend a minimum of 14 characters, according to Microsoft. This guidance is specific to the Microsoft 365 admin context and should not be applied as a universal minimum for all organizations. When configuring your onboarding flow, distinguish between the minimum length required for basic access and the recommended length for enhanced security. See Onboarding path analysis across 4 publishers. For Microsoft 365, the minimum is at least eight characters, with 14 encouraged, while passwords shorter than 15 characters stay weak when MFA is not enabled.

To apply these standards in your code, configure the maxlength attribute of your password input to 64 or higher. This allows a passphrase up to that maximum. Simultaneously, implement validation logic that checks the length against the weak password thresholds. If MFA is enabled for the user, flag passwords under 8 characters as weak. If MFA is not enabled for a user, flag passwords under 15 characters as weak. This approach allows you to provide context-aware feedback during the sign-up process.

These length rules are distinct from complexity rules, which may require specific character types. Focus first on length. Your onboarding form should clearly display the minimum and maximum length requirements to the user. This transparency helps users choose passwords that meet the security standards without guesswork. By aligning your input limits and validation logic with these published guidelines, you create a consistent and secure entry point for new users.

Illustrative example of a weak password

For example, if a user is setting a password for an account that will have MFA enabled, a 7-character password is weak. If the same account does not have MFA, a 14-character password is also weak. When a second factor is off, a password of 15 characters meets the longer line. The account is not forced to change that password at 30, 60, or 90 days.

Managing expiration and forced change policies

Regular password expiration is a common feature in many enterprise environments, but current security guidance suggests reconsidering this practice. Many systems will force users to change their password at regular intervals, typically every 30, 60 or 90 days, according to NCSC. However, forcing a change solely based on time elapsed is no longer the recommended standard for most modern applications.

For cloud-based accounts, specific vendor guidance has shifted away from mandatory expiration. Microsoft's latest guidance discourages password expiration policies for cloud-only accounts, according to Microsoft. This indicates that for organizations relying primarily on cloud infrastructure, removing the automatic expiration timer may be a more appropriate configuration than maintaining a rigid schedule.

Instead of time-based expiration, security authorities recommend reactive measures. Usually, you should only force a password change if you suspect an account might be compromised, according to GOV.UK. This approach aligns the action with a specific security threat rather than a calendar date. When implementing onboarding flows, this means your system should not automatically invalidate a newly created password after a set period.

To apply this to your codebase, review your current authentication logic. If your system currently triggers a "password expired" state based on a timestamp, consider disabling that trigger for standard user accounts. Reserve the forced change mechanism for specific security events, such as a detected breach or a failed login attempt pattern that triggers a risk-based challenge. This keeps the user experience smooth during onboarding while maintaining a strong security posture against actual threats.

Consider the workflow for a new user signing up. For the access step beside that password, read Grant access with 4 vendor start rules before day one. They create a strong password, which is stored securely. If your system forces a change in 90 days, the user must return to the password reset flow, which can introduce friction and potential security risks if they choose a weaker replacement. By removing the expiration timer, you allow the user to maintain a strong, unique password indefinitely.

Handling errors and user feedback securely

When a user submits their account details incorrectly, the system must not reveal whether the username or the password was the incorrect entry. According to GOV.UK, if a user enters their account details incorrectly, do not reveal whether they got the username or password wrong. This specific guidance from the GOV.UK Design System prevents attackers from enumerating valid usernames by observing different error responses. Your error handling logic should return a single, generic message for any authentication failure. Do not create separate error states for "user not found" or "invalid password." By keeping the claim tied to this named source, you ensure your onboarding flow aligns with established security patterns. The goal is to provide no additional information to an attacker who is probing your sign-up or login endpoints.

Beyond error messages, the interface should actively assist users in creating secure credentials. According to GOV.UK, help users to create and enter secure and memorable passwords. This directive from the GOV.UK Design System suggests that your password field should not be a passive input box. Instead, consider implementing client-side validation that provides immediate, non-revealing feedback. For example, you can display a strength meter that indicates whether a password meets basic complexity requirements without specifying which character class is missing. This approach helps users craft passwords that are both strong and memorable, reducing the likelihood of them writing passwords on sticky notes or reusing weak credentials across other sites.

Integrating MFA and risk-based authentication

Multi-factor authentication (MFA) is by far the best defense against the majority of password-related attacks, including brute-force attacks, with analysis by Microsoft suggesting that it would have stopped 99.9% of account compromises, according to OWASP. This statistic highlights the critical role MFA plays in securing onboarding flows beyond simple credential checks. When implementing onboarding, prioritize MFA as the primary security layer rather than relying solely on complex password rules.

If you need additional security, consider adding a second authentication factor rather than extra password restrictions, according to GOV.UK. This approach reduces friction for users during sign-up while increasing account safety. Instead of demanding longer or more complex passwords, integrate a second factor to protect the account. This aligns with modern security practices that favor layered defenses over single-point failures.

Risk-based multifactor authentication ensures that when our system detects suspicious activity, it can challenge the user to ensure that they're the legitimate account owner, according to Microsoft. Implementing this type of authentication allows your system to adapt to real-time threats. For example, if a user attempts to log in from an unfamiliar location, the system can prompt for additional verification. This dynamic approach improves security without consistently burdening legitimate users with repeated challenges.

MFA is best used where there may be additional risk (such as logging into an account on a new device, internet facing systems or for priority accounts), according to NCSC. Apply this guidance by identifying high-risk scenarios in your onboarding process. New device logins and access to internet-facing systems are prime applicants for MFA enforcement. By targeting these specific contexts, you enhance security where it matters most without disrupting standard user experiences.

To implement these controls, configure your authentication system to trigger MFA challenges based on risk signals. Define the specific conditions that constitute suspicious activity, such as new device usage or unusual login locations. Ensure that your system can seamlessly integrate the second authentication factor when these conditions are met. This setup provides a robust defense against password-related attacks while maintaining a smooth user experience for legitimate account holders.

A filled reference table for password security standards

The table below maps the seven core password controls to their specific technical rules and the authoritative sources that define them. Each row links a control to the exact requirement stated by the publisher, ensuring your implementation aligns with verified guidance rather than generic assumptions. Use this reference to audit your onboarding forms and backend logic against these specific standards.

Control Publisher Specific Rule Source URL
Length limits Microsoft (Even though Microsoft 365 requires at least eight characters, for stronger security, we recommend a minimum of 14 characters.) Microsoft
Expiration policies NCSC Many systems will force users to change their password at regular intervals, typically every 30, 60 or 90 days. NCSC
Error handling GOV.UK If a user enters their account details incorrectly, do not reveal whether they got the username or password wrong. GOV.UK
MFA integration NCSC MFA is best used where there may be additional risk (such as logging into an account on a new device, internet facing systems or for priority accounts). NCSC
Storage hashing NIST The salt value SHALL be at least 32 bits in length and arbitrarily chosen to minimize salt value collisions among stored hashes. NIST
Input attributes GOV.UK Set the autocomplete attribute to new-password if the user is creating a password. GOV.UK
User guidance GOV.UK Help users to create and enter secure and memorable passwords. GOV.UK

Check one sign-up error today

Submit a wrong password on a test account and read the message. Confirm it does not say whether the username or the password was wrong, then confirm autocomplete is new-password on the create-password field.

FAQ: how to configure secure password fields for user onboarding

Microsoft 365 requires at least eight characters, but for stronger security, Microsoft recommends a minimum of 14 characters. This guidance applies specifically to their cloud administration context. You should align your onboarding forms with the stricter recommendation rather than the bare minimum requirement.

Should you force users to change their passwords every 90 days?

Microsoft discourages password expiration policies for cloud-only accounts. GOV.UK says usually you should only force a password change if you suspect an account might be compromised. Avoid implementing automatic 90-day rotation unless your specific threat model requires it.

How should the system respond if a user enters the wrong username or password?

GOV.UK states that if a user enters their account details incorrectly, you must not reveal whether they got the username or password wrong. Use a generic error message that does not distinguish between the two fields. This prevents attackers from enumerating valid usernames.

What is the minimum salt length required for password hashing?

NIST requires the salt value to be at least 32 bits in length. The salt must be arbitrarily chosen to minimize salt value collisions among stored hashes. Ensure your hashing library generates salts meeting this minimum bit length.

Does MFA change the threshold for what is considered a weak password?

OWASP states that if MFA is enabled, passwords shorter than 8 characters are considered weak. Without MFA, the threshold for weak passwords is higher, at 15 characters. Implement MFA to allow for shorter, more memorable passwords while maintaining security standards.

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.