Logout query only when nessary, fixed screen blank