moved has_attached_file above paperclip validation