Child rapists to lose parental rights automatically under new laws