before save create user token