Change on how errors are generated and displayed, comments added to views.py