refactor validation function
refactor validation function

texttochange/vusion-frontend,texttochange/vusion-frontend,texttochange/vusion-frontend,texttochange/vusion-frontend,texttochange/vusion-frontend,texttochange/vusion-frontend