added range validator
added number validator