fix "watch" bug

update validate_int_arg to return the value from the function.