made the delete user function so it can work with pending and current user