logout if auth required