update view.py: modify login redirect logic, now it will redirect to the page you want to request before you login or redirect to the index.