creating token for login_once & mail system