paperclip content type validation fix