error handling if no input is given