add check login to cli_spec.ts