- Add date validation and error message display
- Refactor segment key to be configurable