added deletePendingUsers functionality