A woman mde niyyat of qaza wajib roza in the morning without taking permission from husband because he usually says yes. Later in the day husband expressed that the wife should have taken permission but at the same time gives permission. Is the fast valid?

The fast of that day is correct