Input verification