Show validation error messages next to foreign key lookups. Resolves #127
(cherry picked from commit 0f7a88d)