Make the logout button work which was disabled previously