As an input (e.g. date) has to be validated different in different situations, the whole input checking has to be refactored.