fix the login for index1