Check to see if form has been modified before submitting