Added login system to index