fixed association validates to use object instead of foreign key