improved edit user dialog, misc. bugfixes