fixed log in log out issues, correct text displaying in each state