reimplementing register handling with settingUserId, settingPassword and settingAuthenticationUserId