How can I condition a download to a submitted form?