Shripad - Adding global scope for validation function