set focus to the first invalid input