Update views.py

Changes to error redirects