edit tenant with error checking