Invalid port allowed in SMTP credentials

if you enter a bogus port while filling SMTP credentials, like 42342344, the value is allowed.

To Reproduce

  1. Create new credentials
  2. Select SMTP as type
  3. Enter a bogus value on the port field

Expected behavior

An error that the port is invalid should be thrown

Operating System

docker

n8n Version

1.84.3

Node.js Version

20.18.3

Database

SQLite (default)

Execution mode

main (default)

See screenshot for an example: