finish validation for submit and edit forms