seperate index and login