added validation on editing access