added validation for update_after_submit #270