added login, as well as created a helper method to show login, logout, and account at the correct times