Improve error handling for user input on the website

Update error handling logic to address issues with user input validation on the .org website.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 377ee2ae-9d44-4dbb-bbee-3394e46e79ea
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/203e87de-1cfe-419c-b966-9bcc47fea614/377ee2ae-9d44-4dbb-bbee-3394e46e79ea/GGNr3kF
