input validation changes