Login code: set last_api_call and verbose printing.