Added script for word validity