break loop when a form has a file