index and login updated