Issue #12: Login now redirects to page from where it was redirected