add validation for uri resource creation and update