Update views.py

Server side check