Added role validation and check for adding users, set user role method, split from addUserToChat. Functions as before split