added paperclip validation