Check the form isdirty and suppress