Added validation of statuses when changing the status of a record or adding relationships.