Enhanced to show message when empty group name was given.