When a marriage has been solemnized and the plaintiff is a resident of the state, an action to declare the marriage void may be brought at any time.