Add logout functionality