refactoring, new util function for validating component input

Change-Id: I2de89d009eb8f8c33a617267f36f105ebd45ebb8