add validators for some inputs