added validation to relationshipd