Log actions. Fix bug of failure on deleting user on next pages.