Product Requirements Document (PRD): Mobile OTP Login for TV Licensing
Date: October 26, 2023
Version: 2.0
Author: [Your Name/Team Name]
Stakeholders: Product Management, Engineering, UX Design, Customer Support, Compliance/Security
1. Introduction
1.1. Overview
The current login process for the TV Licensing payment and management portal (spp.tvlicensing.co.uk) requires customers to provide three pieces of information: their TV Licence Number, the account holder's Last Name, and the Postcode.
The primary friction point in this process is the TV Licence Number. Customers often misplace this number, leading to login failures, frustration, and increased call volumes to the support centre for licence number retrieval.
1.2. Objective
To introduce a secure, convenient alternative login method using a One-Time Password (OTP) sent via SMS to a pre-registered mobile phone number. This aims to reduce login friction, decrease support calls, and improve the overall customer experience.
1.3. Key Goals
- Reduce Login Friction: Decrease the average time-to-login by 30%.
- Decrease Support Calls: Reduce the volume of "Forgotten Licence Number" related support inquiries by 25% within 3 months of launch.
- Improve Convenience: Provide an authentication method using information the customer readily knows (their mobile number).
- Maintain Security: Ensure the new login method meets or exceeds current security standards.
2. User Personas and Scenarios
2.1. Personas
- The Busy Professional (Alex): Manages household bills quickly, usually on mobile. Doesn't have the TV Licence paperwork handy. Values speed and efficiency.
- The Forgetful Homeowner (Sarah): Frequently forgets the licence number and has to search for old letters. Gets frustrated by the current login process.
- The Elderly Customer (David): May struggle with remembering long numbers but is comfortable receiving and entering a short code from his mobile phone. Values simplicity.
2.2. User Problem/Job Story
"When I need to check my payment date or update my Direct Debit, I want to log in quickly using details I remember (like my phone number), so I don’t have to find an old paper bill to look up my Licence Number."
3. Functional Requirements
The feature shall be implemented in two main phases: (1) Enabling mobile number capture and verification, and (2) Enabling the OTP login flow.
3.1. Feature Table
| ID | Feature/Requirement | Description | Priority |
|---|
| R1 | Mobile Number Capture and Verification (Prerequisite) | | |
| R1.1 | Account Settings Update | Users who are logged in (via the traditional method) must be able to add or update a mobile number in their "Account Settings". | P0 |
| R1.2 | Mobile Verification Flow | When a mobile number is added or changed, an OTP must be sent to that number immediately. The user must enter this OTP to verify ownership of the number before it is saved to the account. | P0 |
| R1.3 | Mobile Status Indicator | The UI must clearly indicate if the associated mobile number is "Verified for Login" or "Unverified". | P1 |
| R2 | Login Screen Modification | | |
| R2.1 | Alternative Login Option | The main login screen must be updated to offer two distinct tabs or clearly separated options: "Log in with Licence Number" (default) and "Log in with Mobile". | P0 |
| R3 | The OTP Login Flow | | |
| R3.1 | Mobile Number Input | The user enters their UK mobile number. The system validates the format. | P0 |
| R3.2 | Account Look-up | The system checks if the mobile number is associated with a verified TV Licence account. | P0 |
| R3.3 | OTP Generation & Delivery | If verified, the system generates a secure, 6-digit OTP and sends it via SMS using the designated SMS gateway. | P0 |
3.2. Detailed Requirement: Handling Unverified Numbers (R4.4)
When a user inputs a mobile number that is not recognized or verified:
Message: "We could not verify your details. Please ensure your mobile number is registered and verified in your account settings. If you haven't registered it, please log in using your TV Licence Number."
Crucially, we must not say "That number is not registered," as this allows attackers to check which numbers hold TV Licences.
4. User Stories
4.1. Adding and Verifying Mobile Number
- As a user, I want to add my mobile number to my account so that I can log in using OTP.
- As a user, I want to verify my mobile number by entering an OTP sent to my phone so that I can ensure it's correctly linked to my account.
- As a user, I want to see the status of my mobile number (verified/unverified) so that I know if I can use it for login.
4.2. Logging in with OTP
- As a user, I want to log in using my mobile number and an OTP so that I don't need to remember my TV Licence Number.
- As a user, I want to receive an OTP on my mobile number so that I can log in securely.
- As a user, I want to be able to resend the OTP if I don't receive it the first time.
- As a user, I want to be notified if my mobile number is not verified so that I can take appropriate action.
4.3. Handling Errors and Edge Cases
- As a user, I want to see a clear error message if my mobile number is not verified so that I know what to do next.
- As a user, I want to be able to switch back to the traditional login method if I encounter issues with the OTP login.
- As a user with multiple accounts linked to my mobile number, I want to be able to select which account I want to access after OTP verification.
5. User Experience (UX) and Flow
5.1. User Flow Diagram
(A) Linking a Mobile Number (Prerequisite Flow)
- User logs in using the current method (Licence No, Surname, Postcode).
- User navigates to "Account Settings" / "Contact Details".
- User selects "Add/Update Mobile Number for Login".
- User enters Mobile Number.
- System sends Verification OTP.
- User enters Verification OTP.
- Success: Mobile is now marked as "Verified for Login".
(B) Logging in with OTP (New Feature Flow)
- User visits spp.tvlicensing.co.uk.
- User selects the "Log in with Mobile" option.
- User enters their UK Mobile Number.
- System checks if the number is verified.
- If NO: Display generic error (R4.4) and prompt to use Licence Number login.
- If YES: System generates and sends OTP via SMS.
- User receives SMS and enters the OTP on the website.
- System validates OTP.
- If Invalid (or expired): Display error. Allow retry (up to 3 times).
- If Valid: User is logged into the Dashboard (or the account selector if R4.5 is triggered).
5.2. Wireframe Concepts (Descriptions)
-
Login Screen
- Current login screen with TV Licence Number, Last Name, and Postcode fields.
- Updated login screen with an additional option: "Log in with Mobile Number".
-
Mobile Number Input Screen
- Input field for mobile number.
- Submit button.
- Link to traditional login method.
-
OTP Input Screen
- Input field for OTP.
- Resend OTP link.
- Countdown timer for OTP expiry.
- Back button to re-enter mobile number.
-
Error and Success Messages
- Error message for unverified/unrecognized mobile numbers.
- Success message after OTP verification.
6. Technical Specifications
6.1. API Specifications for Twilio Verify Integration
- Use Twilio Verify API to send and verify OTPs.
- Configure the API with the necessary parameters (e.g., sender ID, message template, OTP length and expiry).
6.2. Database Schema Changes
- Add fields to store:
- Mobile number.
- Verification status (Boolean).
- Timestamp of last verification.
6.3. Security Measures
- Storage: Mobile numbers are Personally Identifiable Information (PII) and must be stored encrypted according to GDPR and UK data protection laws.
- OTP Generation: OTPs must be cryptographically secure, time-based (5-minute expiry), and single-use.
- SIM Swapping: While OTP improves login convenience, sensitive actions within the account (e.g., changing the bank details or the registered address) should potentially require secondary confirmation (e.g., re-entering the postcode or the traditional login details).
7. Implementation Plan
7.1. Phase 1: Mobile Number Capture and Verification
- Timeline: 2 weeks
- Milestones:
- Update account settings to include mobile number field.
- Implement mobile number verification flow.
- Add mobile status indicator.
- Resources: 1 backend developer, 1 frontend developer, 1 QA engineer.
7.2. Phase 2: OTP Login Flow
- Timeline: 3 weeks
- Milestones:
- Update login screen to include mobile number option.
- Implement OTP generation and delivery.
- Implement OTP input and validation.
- Implement security measures (rate limiting, OTP expiry, etc.).
- Resources: 1 backend developer, 1 frontend developer, 1 QA engineer, 1 UX designer.
7.3. Phase 3: Testing and Deployment
- Timeline: 2 weeks
- Milestones:
- Conduct unit, integration, end-to-end, security, usability, performance, and edge case tests.
- Deploy to beta testers.
- Gather feedback and make necessary adjustments.
- Gradual rollout to all users.
- Resources: 1 QA engineer, 1 DevOps engineer, 1 customer support representative.
8. Test Plans
8.1. Unit Tests
- Test OTP generation function.
- Test SMS sending function.
- Test OTP validation function.
8.2. Integration Tests
- Test interaction between login screen and OTP generation.
- Test interaction between OTP generation and SMS delivery.
- Test interaction between OTP input and validation.
8.3. End-to-End Tests
- Test the entire flow from entering mobile number to successful login.
- Test the entire flow with an unverified mobile number.
- Test the entire flow with multiple accounts linked to one mobile number.
8.4. Security Tests
- Test for brute force attacks by attempting multiple OTP entries.
- Test for OTP interception by simulating man-in-the-middle attacks.
- Test for SIM swap attacks by changing the mobile number associated with an account.
8.5. Usability Tests
- Test the user interface for intuitiveness and ease of use.
- Conduct user testing sessions to gather feedback on the new login method.
8.6. Performance Tests
- Test the system's ability to handle a large number of concurrent login attempts.
- Test the response time for OTP generation and delivery.
8.7. Edge Case Tests
- Test with multiple accounts linked to one mobile number.
- Test with unverified mobile numbers.
- Test with expired OTPs.
- Test with rate-limited OTP resend requests.
9. Rollout and Deployment Plan
9.1. Beta Testing
- Select a small group of users (e.g., 100-200) to test the new login method.
- Gather feedback on usability, reliability, and any issues encountered.
- Make necessary adjustments based on feedback.
9.2. Gradual Rollout
- Roll out the feature to a larger group of users (e.g., 10% of total users).
- Monitor performance, reliability, and user feedback.
- Gradually increase the rollout percentage (e.g., 25%, 50%, 75%, 100%).
9.3. Monitoring and Feedback Collection
- Monitor login success rates, support calls, and other KPIs.
- Collect user feedback through surveys, support calls, and website analytics.
- Address any issues or concerns raised by users.
10. Monitoring and Maintenance
10.1. Monitoring
- Monitor login success rates to ensure the OTP method is reliable.
- Monitor support calls related to the new login method to identify any issues or areas for improvement.
- Monitor SMS delivery rates and costs to ensure they are within expected ranges.
10.2. Maintenance
- Regularly review and update security measures to address any new threats or vulnerabilities.
- Regularly review user feedback and make necessary adjustments to improve the user experience.
- Regularly review and update the system to ensure it remains reliable and performant.
11. Compliance and Legal Considerations
11.1. GDPR Compliance
- Ensure mobile numbers are stored securely and encrypted according to GDPR standards.
- Provide users with the ability to opt-out of storing their mobile number.
- Ensure users are informed about how their mobile number will be used and stored.
11.2. Other Relevant Regulations
- Ensure compliance with any other relevant regulations or laws, such as those related to data protection and privacy.
12. User Education and Support
12.1. Updating Help Section
- Update the help section of the website to include information on the new OTP login method.
- Provide step-by-step instructions on how to add and verify a mobile number.
- Provide step-by-step instructions on how to log in using OTP.
12.2. Training Customer Support Staff
- Train customer support staff on the new login method.
- Provide them with detailed documentation on how the new method works and how to troubleshoot common issues.
12.3. Creating FAQs and Tutorials
- Create FAQs addressing common questions and issues related to the new login method.
- Create video tutorials demonstrating how to add and verify a mobile number and how to log in using OTP.
13. Fallback and Recovery Mechanisms
13.1. Handling SMS Delivery Failures
- If the SMS is not delivered, provide an option to resend the OTP.
- If the SMS is still not delivered after multiple attempts, provide an option to use the traditional login method.
13.2. Recovery for Lost Mobile Devices
- Provide a recovery process for users who lose their mobile device.
- This could involve verifying their identity through other means (e.g., email, security questions) and allowing them to update their mobile number.
13.3. Alternative Methods for Users Without Mobile Access
- Provide alternative login methods for users who do not have access to their mobile device.
- This could include using the traditional login method or providing an option to receive the OTP via email.
14. Twilio Verify Integration
14.1. API Integration Details
- Use Twilio Verify API to send and verify OTPs.
- Configure the API with the necessary parameters (e.g., sender ID, message template, OTP length and expiry).
14.2. Configuration Settings
- Set the sender ID to a recognizable name (e.g., "TVLicensing").
- Set the message template to include the OTP and clear instructions (e.g., "Your TV Licensing login code is: {OTP}. This code will expire in 5 minutes.").
- Set the OTP length to 6 digits and expiry to 5 minutes.
14.3. Error Handling
- Handle errors from Twilio, such as failed SMS delivery or rate limits.
- Provide clear error messages to users when these errors occur (e.g., "We could not send the OTP. Please try again later or use the traditional login method.").
14.4. Cost Analysis
- Estimate the cost of using Twilio Verify based on expected usage.
- Compare with other SMS gateway providers to ensure cost-effectiveness.
14.5. Performance and Reliability Considerations
- Ensure Twilio Verify meets the performance and reliability requirements.
- Consider fallback mechanisms if Twilio Verify service is down (e.g., switch to a backup SMS provider or provide alternative login methods).
15. Success Metrics and KPIs
15.1. Adoption Rate
- Measure the percentage of total logins using the OTP method vs. the traditional method.
- Aim to increase the adoption rate over time through user education and improvements based on feedback.
15.2. Login Success Rate (OTP)
- Measure the success rate of the OTP flow (from entering the number to accessing the dashboard).
- Aim to maintain a high success rate to ensure the new method is reliable.
15.3. Support Ticket Deflection
- Measure the decrease in "Forgotten Licence Number" inquiries (Phone/Email).
- Aim to reduce support calls by 25% within 3 months of launch.
15.4. SMS Delivery Rate & Cost
- Monitor the reliability and operational cost of the SMS gateway.
- Aim to maintain a high delivery rate and manage costs effectively.
15.5. Login Abandonment Rate
- Measure the percentage of users starting the login process but not completing it.
- Aim to decrease the abandonment rate by improving the user experience and addressing any issues.
16. Risks and Mitigation
16.1. SMS Costs
- Risk: High adoption could lead to significant SMS delivery costs.
- Mitigation: Implement strict rate limiting (R4.3). Monitor costs closely. Ensure competitive pricing with the SMS gateway.
16.2. SMS Deliverability
- Risk: Users in low-signal areas may not receive the OTP promptly.
- Mitigation: Ensure OTP expiry is reasonable (5 mins). Provide a clear "Resend" option. Maintain the traditional login as a fallback.
16.3. Account Takeover (SIM Swap)
- Risk: If an attacker compromises a user's mobile number, they could access the account.
- Mitigation: Require secondary verification (e.g., postcode) for sensitive account changes, even if logged in via OTP.
16.4. User Confusion
- Risk: Users may try to log in with a mobile number they haven't yet verified.
- Mitigation: Clear UX and error messaging (R4.4) directing users to verify their number using the traditional login first.
17. Out of Scope (Future Phases)
17.1. Email OTP
- Allow users to receive the OTP via email as an alternative to SMS.
17.2. Authenticator Apps (TOTP)
- Allow users to use authenticator apps like Google Authenticator or Authy for OTP generation.
17.3. Mandatory 2FA
- Make OTP login mandatory for all users to enhance security.
17.4. WhatsApp/RCS Delivery
- Allow users to receive the OTP via WhatsApp or RCS as an alternative to SMS.
This comprehensive PRD covers all aspects of the project end-to-end, including user stories, test plans, visuals, technical specifications, implementation plan, rollout and deployment plan, monitoring and maintenance, compliance and legal considerations, user education and support, fallback and recovery mechanisms, Twilio Verify integration, success metrics and KPIs, risks and mitigation, and out-of-scope items for future phases.