making name and parent required