Adds port to login redirect url.

PR for #1