Reformed login.mako and associated .mako into a single login.pt to avoid the lark-only lookup error. Fixed a populate_db misnaming.