Fix PHP Fatal Error in Relationship Form