Section 5B. In making orders for adoption, the judge shall consider the need of the child for loving and responsible parental care and all factors relevant to the physical, mental and moral health of the child.
If, at the time of surrender of the child for adoptive custody, the parent or parents of said child requested a religious designation for the child, the court may grant a petition for adoption of the child only to a person or persons of the religious designation so requested, unless a placement for adoptive custody based on such request would not have been in the best interests of the child. If a request for religious designation is not given effect, such reasons in support of such determination shall be made a part of the records of the proceedings.