HIGH story-email-password-login-coordinator-002 2 pts
2
Story Points
High
Priority
Email & Password Login
Feature

User Story

As a user
I want to see a clear and specific error message when my login attempt fails
So that So that I understand what went wrong and know exactly what action to take to resolve the issue

Acceptance Criteria

  • Given a user enters an incorrect password, when they submit the form, then an inline error message 'Incorrect email or password. Forgot your password?' is shown with a tappable reset link
  • Given a user attempts login with an unverified email, when authentication is rejected, then the error message states that email verification is required and offers to resend the verification email
  • Given a network failure during login, when the Supabase call times out, then a user-friendly offline message is shown with a retry option
  • Given Supabase returns a rate limit error, when too many failed attempts have been made, then the error message informs the user to wait before trying again
  • Given an error message is displayed, when a screen reader is active, then the error is announced immediately using an ARIA live region or equivalent semantic role
  • Given any error state, when the user corrects their input and resubmits, then the previous error message is cleared before the new attempt

Business Value

Clear error feedback reduces support escalations by enabling users to self-serve their way through common authentication problems. This is especially important for the peer mentor segment, which includes users with lower digital literacy, older age groups, and users relying on screen readers. Vague errors cause users to abandon the app or contact coordinators, creating support burden. Localized, specific errors also ensure WCAG 2.2 AA compliance, which is a stated must-have across all three participating organizations.

Components