logout condition for responsive