added paperclip, pin model validations