Validerer inputfelt