adding a simple validator script