adding step validation for no of parameters