added simple validator