lp 3 input validation