Error Checking and confirmation for assigning a child to a class