adding error checking for role delete