Fix. The ApplicationUser didn't have the correct PublicId when a new user is registered