Fix bugs in user and usergroup management
Gui fixes