Modified the validation functionality for keyword

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>