Added forms functions to views.py