Extract login-logout widget into separate function