Fix login success trigger