form update and check