changes made by milind for validation errors