fixed other pages having logout function