Use log instead of fmt.
Prestart session on register.