Fix bugs in the Links and form validation