update form and validation