Fix File attachment validation as of paperclip 4