Introduced Permission Checks to Rename Command

Introduced membership checks to renamce command
Improvement to code