Added validation to Port field, to ensure number between 1 and 65535
When saving configurations, test the connection(s) first before saving, informing user of errors