Minor fix in id generator, created genOs function, rewrited validator, added request headers passing to validator when user is sending to receiver