avoid to overwrite another capability when changing the capability field
checking for empty or existing group name when updating