Added validation for paperclip image upload