Fix TypeError on line 694, in show_login