added conditions for roleid updates in add user(s)