Pic validate

js deactivates submit button if no picture is present, and deactivates delete button on last img on edit page.