Added logout button and functionality to homepage.