Added validation for param when allow is given