The application works the same way as the F# version
- Add common request validation function
- Centralized UI between UI and Layout classes