Handle the login link properly

Resolves #50