fix for updating after validation error