minor bug fixes in views.py and createUserExample.py