After accepting a divorce case, the people's court shall inform the parties concerned of the invalidity of the marriage and make a judgment declaring the marriage invalid according to law if it is confirmed that the marriage is invalid after examination.