validate text entries and added validator