Implemented login/logout into the home page.