fixed user registration in UserIdentity