Changed Login and index Controller.