refacor the way to retrieve the school date by open id