Added security and permssion check proposed by @MarcoXoops #703
Fixed issue #667: Error message upon role title edit