Added basic validations for relationship