Fixes bug 889025 - Made login redirect to the previous page.

@peterbe r?