created validator(dont yesterday just comiting now.)