Wrong validation of input parameters