valify input