Update to contrib/menu_login.py

Updated the menu_login.py contrib to be compatible out of the box with the current master branch.