MEDIUM story-email-password-login-coordinator-008 2 pts
2
Story Points
Medium
Priority
Email and Password Login
Feature

User Story

As a Coordinator
I want the app to check that my email address is in a valid format before sending my login request
So that So that I get immediate feedback if I have made a typo in my email, rather than waiting for a server round-trip to tell me something is wrong

Acceptance Criteria

  • Given the email field contains 'notanemail', When the user taps the sign-in button, Then inline validation displays 'Please enter a valid email address' adjacent to the email field and no network request is made
  • Given the email field is completely empty, When the user taps sign in, Then the error 'Email address is required' is shown for the email field
  • Given the password field is empty, When the user taps sign in, Then the error 'Password is required' is shown for the password field
  • Given all client-side validation passes, When the user taps sign in, Then the network authentication request is initiated and a loading indicator is shown on the button
  • Given an inline validation error is shown, When the user corrects the field and taps sign in again, Then the field error clears and the request proceeds if all fields are now valid

Business Value

Client-side validation reduces failed server requests, lowers API costs, and provides a measurably faster error-correction cycle for the user. For peer mentors in areas with poor connectivity — common in rural Norway where peer support work often takes place — avoiding unnecessary network round-trips for avoidable input errors improves perceived performance and reduces data usage.

Dependencies