add input value from params in cases where there is an error