Fix user not registering issue.