add validation and unit tests for restaurants