Better at loginwindow check