mac validation in views.py