more sanity checks with input validation process