This block should be function isValidInput()