added link cleaning function for display on category page
added form validation functions addlink and addcategory