Fix login ticket lifetime bug