add username judging when restarted