a stupid package to remember last visit URL before login, and redirect to that URL after login