add validate attachment for paperclip