Restrict number of attempts for valid parameter value