fixing the delete user functionality