validate and filter transaction validate input