Logarithmic corrections to rotating extremal black hole entropy in four and five dimensions