Finished logout functionality