Fix login redirection not working upon successful login.

Fixes #3