auto-login on register and activation