Validates when the input loses focus.