Checks for input, errors if empty.