made logout button work