validation for empty link and tags