Added logout functionality

The logout button works now.