modify user uniqueness validation and add unique index into DB