add validation for namespace