Fixed log out routing to main page