added validation for required fields on tenant API
added unit tests for 100% coverage on tenant API