updating with forms and validation