add validation for paperclip
Fixes #103