Fixes to user group assignment upon registration