added logout functionality to WPF app