change uniqueness of credential to be together with database