login/logout logic and nav template