- added data validation to main controller
- unit test data validation