Remove indentation from _init_heartbeat
fix login not saving clientId