-- code and tests to validate input to create-relationship function