Currently, the URL input at frontend/src/landingPage.jsx uses new URL(url) which throws an error for URLs like "google.com" - it only accepts full URLs with protocol (e.g., "https://google.com/").
Requirements:
- Modify the handleScan function to prepend "https://" to the input if no protocol is provided
- After normalization, validate that the URL is valid
- Update the error message to be more helpful (e.g., "Please enter a valid website address")
- Ensure tests in frontend/src/tests/landingPage.test.jsx pass with new behavior
Test cases to add:
- "google.com" should work
- "example.org" should work
- "localhost:3000" should work
- Invalid inputs like "not-a-url" should still show error