edited validation for asset (add and edit) feature