fix(privileges): make privilege names ui friendly

This logic can be added on "privilege" function and raise an exception if a name is registered twice.