add component validation check in add function