added logout functionality
resolved #65