Workaround for validation loss when form submit