added login controller and index view