Adding validation to paperclip

Needs better testing