Creating index and login