Make validation error message more dry as suggested by @KasperHolm. Closes issue #20