add filters to fields. Avoids invalid input from user