updated location of confirm controller and added a check for a valid form.