middleware.py updated for Mobile

Made some changes to middleware.py so that the switch_user option doesn't appear on mobile pages.