UI: Checks for invalid input.