added validator to santize data from post