fixed minor logout bugs