added form validation for the connections modal