Update views.py

finish register view