adds validations for presence of foreign key fields