Modification of epoxy resin with optically active carboxylic acid