fixed the delete user functionality