fix error with logout button