added StringValidator and IntegerValidator to decrease the complexitiy