Fixed main_login cookie bug