Completed the logout feature