better last login check