BZ-11109: check if form is dirty to be invalid

Signed-off-by: Paden <padenportillo@gmail.com>