Added some validation to the inputs to ansure only alphanumeric and '-_.'