separate index and login pages