Add port attribute and validation rule to LoginForm
Add port parameter from POST request to form attributes
Add port text field in the login form template
Translations for the word port
Add port to attribute list of the login form
Validate port number before password

Port number must be validated before the password since password gets
validated by the database server, and both host and port are required
for the correct connection string.
Add port to user identity and connection strings