input validator done