Added validations for related objects & removed accidental syntax error