What happens if the husband (legal father) is not the biological father?

If the mother is married, her husband is considered the legal father even if he is not the biological father. He must consent to the adoption or his rights must be terminated in court UNLESS his paternity is excluded or another man’s paternity is established.