Logging in with username and password does not work when using prefix URLs

Logging in with username and password does not work when using prefix URLs because the login form has /login hardcoded.

Here is a fix.