changes for validation in condition directive