return correct user object after register