A mother is granted sole physical and legal custody of a child, if she and the father are unmarried, and paternity is not established. Once paternity is established the father gets parental rights to the child.