Fixed issue with default group creation on register

Fixes issue #563