Implemented a JSON validator on the link generation and also on the redirect page. Also added an array filter to the array of words to remove any empty strings, nulls, undefineds. Also added alerts to tell user if the format of their words is incorrect, and an alert on the redirect to tell user if the link is invalid.