added update option for validation