adding validation for embedded objects in mongoose