fixed login-redirect issue for authenticated user

After a user is successfully logged in, and the user hits "https://bookie.io/login", then the user is not redirected to its recent page.
This pull request fixes this issue.