Logout button now functions