conditions for a valid adoption