fix register user bug when the user login at first time.