break out early if valid input found