logout button bug fix.