Add basic validation to update routine