Added check on instance permissions before loading the instance page.