adds validations to shortener form