removing focus on invalid input