Added popup for invalid input.