Split index and login.