check the user uniqueness during registration.