fixed the issue of user registration with same ids.